Skip to content

Commit

Permalink
Adjust testsuite to use perl-versions
Browse files Browse the repository at this point in the history
This is now using a dynamic list of available Perl versions.
Note: we are not using the explicit 'buster' image flavor as earlier.
  • Loading branch information
atoomic committed Apr 28, 2024
1 parent 2e36d6f commit fc0c7b5
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc0c7b5

Please sign in to comment.