From 30a46a0e153aa565c2ec5ab6ac22770c598c6820 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 28 Apr 2024 12:12:37 -0500 Subject: [PATCH] Update tests --- .github/workflows/test_set_2.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_set_2.yml b/.github/workflows/test_set_2.yml index 0a640cd..14d349d 100644 --- a/.github/workflows/test_set_2.yml +++ b/.github/workflows/test_set_2.yml @@ -17,7 +17,7 @@ jobs: if: github.repository_owner == 'hwdsl2' strategy: matrix: - os_version: ["ubuntu:22.04", "ubuntu:20.04", "debian:12", "debian:11", "debian:10", "alpine:3.19", "alpine:3.18"] + os_version: ["ubuntu:24.04", "ubuntu:22.04", "ubuntu:20.04", "debian:12", "debian:11", "debian:10", "alpine:3.19", "alpine:3.18"] fail-fast: false container: image: ${{ matrix.os_version }} @@ -42,7 +42,8 @@ jobs: fi restart_ipsec() { - if [ "$os_type" = "alpine" ]; then + if [ "$os_type" = "alpine" ] \ + || grep -qs trixie /etc/debian_version; then ipsec whack --shutdown || true ipsec pluto --config /etc/ipsec.conf fi @@ -84,7 +85,7 @@ jobs: apt-get -yqq update apt-get -yqq dist-upgrade apt-get -yqq install wget rsyslog - if grep -qs bookworm /etc/debian_version \ + if grep -qs -e bookworm -e trixie /etc/debian_version \ || [ "$(sed 's/\..*//' /etc/debian_version 2>/dev/null)" = "12" ]; then rsyslogd else @@ -105,8 +106,10 @@ jobs: restart_ipsec else restart_ipsec - restart_fail2ban - cat /var/log/fail2ban.log + if ! grep -qs trixie /etc/debian_version; then + restart_fail2ban + cat /var/log/fail2ban.log + fi fi netstat -anpu | grep pluto