File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Ubuntu 24.04 LTS"
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+ workflow_dispatch :
9+
10+ jobs :
11+ ubuntu-2404 :
12+ name : Test Ubuntu 24.04 LTS
13+ # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
14+ runs-on : ubuntu-24.04
15+ steps :
16+ - name : π§ Install dependencies
17+ run : |
18+ sudo apt-get install \
19+ curl \
20+ iputils-ping \
21+ traceroute \
22+ netcat-openbsd \
23+ grep \
24+ sed
25+
26+ # Test commands
27+ - name : π§ Test ping
28+ run : ping -w 5 -c 2 '127.0.0.1'
29+ - name : π§ Test nc
30+ run : nc -z -w 5 'www.nkn-it.de' '443'
31+ - name : π§ Test curl
32+ run : curl -Is --max-time 5 'https://www.nkn-it.de/ci.txt'
33+ - name : π§ Test curl (http-status)
34+ run : curl -s -o /dev/null -I --max-time "5" -w "%{http_code}" "https://www.nkn-it.de/ci.txt"
35+ - name : π§ Test dig
36+ run : dig ns 'nkn-it.de'
37+
38+ # git clone
39+ - name : ποΈ Checkout
40+ uses : actions/checkout@v4
41+
42+ - name : π Get assert.sh
43+ run : curl -f "https://raw.githubusercontent.com/lehmannro/assert.sh/v1.1/assert.sh" -o assert.sh
44+
45+ # Run tests
46+ - name : π οΈ Test
47+ run : bash test.sh
48+
49+ # View files
50+ - name : π status_hostname_list.txt
51+ run : cat $HOME/status/status_hostname_list.txt
52+ - name : π status_hostname_ok.txt
53+ run : cat $HOME/status/status_hostname_ok.txt
54+ - name : π status_hostname_down.txt
55+ run : cat $HOME/status/status_hostname_down.txt
Original file line number Diff line number Diff line change 33[ ![ Badge: GNU Bash] ( https://img.shields.io/badge/GNU%20Bash-4EAA25.svg?logo=gnubash&logoColor=white )] ( #readme )
44[ ![ 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 )
55[ ![ 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 )
6+ [ ![ 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
67[ ![ Badge: GitHub] ( https://img.shields.io/github/license/cyclenerd/static_status )] ( https://github.com/Cyclenerd/static_status/blob/master/LICENSE )
78
89## Description π
You canβt perform that action at this time.
0 commit comments