-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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