From b40defbbceeaae617504095f70eaaa873edc5593 Mon Sep 17 00:00:00 2001 From: Nils Date: Tue, 14 May 2024 12:14:01 +0200 Subject: [PATCH] ubuntu 24.04 test --- .github/workflows/ubuntu_2404.yml | 55 +++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/ubuntu_2404.yml diff --git a/.github/workflows/ubuntu_2404.yml b/.github/workflows/ubuntu_2404.yml new file mode 100644 index 000000000..9a27892c3 --- /dev/null +++ b/.github/workflows/ubuntu_2404.yml @@ -0,0 +1,55 @@ +name: "Ubuntu 24.04 LTS" + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + ubuntu-2404: + name: Test Ubuntu 24.04 LTS + # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md + runs-on: ubuntu-24.04 + steps: + - name: 🔧 Install dependencies + run: | + sudo apt-get install \ + curl \ + iputils-ping \ + traceroute \ + netcat-openbsd \ + grep \ + sed + + # Test commands + - name: 🐧 Test ping + run: ping -w 5 -c 2 '127.0.0.1' + - name: 🐧 Test nc + run: nc -z -w 5 'www.nkn-it.de' '443' + - name: 🐧 Test curl + run: curl -Is --max-time 5 'https://www.nkn-it.de/ci.txt' + - name: 🐧 Test curl (http-status) + run: curl -s -o /dev/null -I --max-time "5" -w "%{http_code}" "https://www.nkn-it.de/ci.txt" + - name: 🐧 Test dig + run: dig ns 'nkn-it.de' + + # git clone + - name: 🛎️ Checkout + uses: actions/checkout@v4 + + - name: 🎁 Get assert.sh + run: curl -f "https://raw.githubusercontent.com/lehmannro/assert.sh/v1.1/assert.sh" -o assert.sh + + # Run tests + - name: 🛠️ Test + run: bash test.sh + + # View files + - name: 📃 status_hostname_list.txt + run: cat $HOME/status/status_hostname_list.txt + - name: 📃 status_hostname_ok.txt + run: cat $HOME/status/status_hostname_ok.txt + - name: 📃 status_hostname_down.txt + run: cat $HOME/status/status_hostname_down.txt \ No newline at end of file diff --git a/README.md b/README.md index 2169e3656..833a3f684 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Badge: GNU Bash](https://img.shields.io/badge/GNU%20Bash-4EAA25.svg?logo=gnubash&logoColor=white)](#readme) [![Badge: ShellCheck](https://github.com/Cyclenerd/static_status/actions/workflows/shellcheck.yml/badge.svg?branch=master)](https://github.com/Cyclenerd/static_status/actions/workflows/shellcheck.yml) [![Badge: Ubuntu 22.04 LTS](https://github.com/Cyclenerd/static_status/actions/workflows/ubuntu_2204.yml/badge.svg?branch=master)](https://github.com/Cyclenerd/static_status/actions/workflows/ubuntu_2204.yml) +[![Badge: Ubuntu 24.04 LTS](https://github.com/Cyclenerd/static_status/actions/workflows/ubuntu_2404.yml/badge.svg?branch=master)](https://github.com/Cyclenerd/static_status/actions/workflows/ubuntu_2404.yml [![Badge: GitHub](https://img.shields.io/github/license/cyclenerd/static_status)](https://github.com/Cyclenerd/static_status/blob/master/LICENSE) ## Description 📝