Skip to content

Commit b40defb

Browse files
committed
ubuntu 24.04 test
1 parent afd5b41 commit b40defb

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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 πŸ“

0 commit comments

Comments
Β (0)