Skip to content

Commit

Permalink
ubuntu 24.04 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyclenerd committed May 14, 2024
1 parent afd5b41 commit b40defb
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ubuntu_2404.yml
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 πŸ“
Expand Down

0 comments on commit b40defb

Please sign in to comment.