From fc0c7b5bf0ad9f865f852610a0901e19da185b6f Mon Sep 17 00:00:00 2001 From: Nicolas R Date: Sun, 28 Apr 2024 11:44:12 +0100 Subject: [PATCH] Adjust testsuite to use perl-versions This is now using a dynamic list of available Perl versions. Note: we are not using the explicit 'buster' image flavor as earlier. --- .github/workflows/test.yml | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 150020db..162c73c0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,33 +5,30 @@ on: - pull_request jobs: + + perl-versions: + runs-on: ubuntu-latest + name: List Perl versions + outputs: + perl-versions: ${{ steps.action.outputs.perl-versions }} + steps: + - id: action + uses: perl-actions/perl-versions@v1 + with: + since-perl: v5.10 + with-devel: true + linux: runs-on: ubuntu-latest + needs: [perl-versions] defaults: run: shell: 'script -q -e -c "bash {0}"' # create TTY so that -t STDIN works strategy: fail-fast: false matrix: - perl-version: - - '5.10-buster' - - '5.12-buster' - - '5.14-buster' - - '5.16-buster' - - '5.18-buster' - - '5.20-buster' - - '5.22-buster' - - '5.24-buster' - - '5.26-buster' - - '5.28-buster' - - '5.30-buster' - - '5.32-buster' - - '5.34-buster' - - '5.36-buster' - - '5.38-buster' - - 'devel' - container: - image: perl:${{ matrix.perl-version }} + perl-version: ${{ fromJson (needs.perl-versions.outputs.perl-versions) }} + container: perl:${{ matrix.perl-version }} steps: - uses: actions/checkout@v4 - name: Install Dependencies