From 58e3c73651a1ea8203e6b045a703d78c5c5ed36f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branislav=20Zahradn=C3=ADk?= Date: Sun, 12 Jul 2026 08:02:09 +0200 Subject: [PATCH] Use perl-versions action to keep tests up-to-date Action lists all available Perl versions per target. Once a new Perl version is released, tests will use it without any modification required in this repository. --- .github/workflows/linux.yml | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 27932fec8..1370bf441 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -9,7 +9,20 @@ on: pull_request: jobs: + perl-versions: + runs-on: ubuntu-latest + name: List perl versions + outputs: + perl-versions: ${{ steps.action.outputs.perl-versions }} + steps: + - uses: perl-actions/perl-versions@v2 + with: + since-perl: v5.8 + target: perl-tester + perl: + needs: + - perl-versions runs-on: ubuntu-latest @@ -23,24 +36,7 @@ jobs: strategy: fail-fast: false matrix: - perl-version: - - 'latest' - - '5.38' - - '5.36' - - '5.34' - - '5.32' - - '5.30' - - '5.28' - - '5.26' - - '5.24' - - '5.22' - - '5.20' - - '5.18' - - '5.16' - - '5.14' - - '5.12' - - '5.10' - - '5.8' + perl-version: ${{ fromJson (needs.perl-versions.outputs.perl-versions) }} container: image: perldocker/perl-tester:${{ matrix.perl-version }} @@ -56,4 +52,4 @@ jobs: - name: make run: make - name: Run Tests - run: make test \ No newline at end of file + run: make test