Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hwdsl2 committed Apr 28, 2024
1 parent 028d6dc commit 30a46a0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test_set_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 30a46a0

Please sign in to comment.