Create FUNDING.yml #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Ubuntu 22.04 LTS" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
ubuntu-2204: | |
name: Test Ubuntu 22.04 LTS | |
runs-on: ubuntu-22.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@v3 | |
- 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 |