Skip to content

Commit

Permalink
github workflow: switch to taiki-e/checkout-action@v1 + add more test…
Browse files Browse the repository at this point in the history
… configs
  • Loading branch information
eserte committed Jul 12, 2024
1 parent c7a39d6 commit 9bcb4f0
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
strategy:
matrix:
include:
- os: 'ubuntu-20.04'
- os: 'ubuntu-22.04'
- os: 'ubuntu-20.04'
- os: 'ubuntu-22.04'
- os: 'ubuntu-24.04'

steps:
- name: apt hacks
Expand All @@ -27,7 +28,7 @@ jobs:
sudo rm -f /etc/apt/sources.list.d/*.list
sudo apt-get update -qq
if: "startsWith(matrix.os, 'ubuntu-')"
- uses: actions/checkout@v3
- uses: taiki-e/checkout-action@v1
- name: Preinstall, Configure, Build and Test
env:
HARNESS_TIMER: 1
Expand Down Expand Up @@ -87,7 +88,18 @@ jobs:
- perlimage: 5.40.0-slim-bookworm

steps:
- uses: actions/checkout@v3
- name: apt hacks
run: |
set -e
CODENAME=$(perl -nle '/^VERSION_CODENAME="?([^"]+)/ and $codename=$1; /^VERSION="\d+ \((.*)\)/ and $maybe_codename=$1; END { print $codename || $maybe_codename }' /etc/os-release)
case "$CODENAME" in
wheezy|jessie|stretch)
echo "APT::Get::AllowUnauthenticated 1;" > /etc/apt/apt.conf.d/02allow-unsigned
echo "deb [check-valid-until=no] http://archive.debian.org/debian $CODENAME main" > /etc/apt/sources.list
echo "deb [check-valid-until=no] http://archive.debian.org/debian-security/ $CODENAME/updates main" >> /etc/apt/sources.list
;;
esac
- uses: taiki-e/checkout-action@v1
- name: Preinstall, Configure, Build and Test
env:
HARNESS_TIMER: 1
Expand Down

0 comments on commit 9bcb4f0

Please sign in to comment.