Skip to content

Commit 265d1fe

Browse files
committed
Fix perl versions for testing
1 parent cb20bd9 commit 265d1fe

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

.github/workflows/testsuite.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,21 @@ jobs:
3131
- name: make test
3232
run: make test
3333

34-
linux:
35-
name: "linux ${{ matrix.perl-version }}"
34+
perl-versions:
35+
runs-on: ubuntu-latest
3636
needs: [ubuntu]
37+
name: List Perl versions
38+
outputs:
39+
perl-versions: ${{ steps.action.outputs.perl-versions }}
40+
steps:
41+
- id: action
42+
uses: perl-actions/perl-versions@v1
43+
with:
44+
since-perl: v5.10
45+
with-devel: true
46+
linux:
47+
name: "Perl ${{ matrix.perl-version }}"
48+
needs: [perl-versions]
3749
runs-on: ubuntu-latest
3850

3951
env:
@@ -44,25 +56,11 @@ jobs:
4456
PERL_CARTON_PATH: $GITHUB_WORKSPACE/local
4557

4658
strategy:
59+
fail-fast: false
4760
matrix:
48-
perl-version:
49-
- "latest"
50-
- "5.32"
51-
- "5.30"
52-
- "5.28"
53-
- "5.26"
54-
- "5.24"
55-
- "5.22"
56-
- "5.20"
57-
- "5.18"
58-
- "5.16"
59-
- "5.14"
60-
- "5.12"
61-
- "5.10"
62-
- "5.8"
63-
64-
container:
65-
image: perl:${{ matrix.perl-version }}
61+
perl-version: ${{ fromJson (needs.perl-versions.outputs.perl-versions) }}
62+
63+
container: perldocker/perl-tester:${{ matrix.perl-version }}
6664

6765
steps:
6866
- uses: actions/checkout@v2
@@ -78,7 +76,7 @@ jobs:
7876
- run: make test
7977

8078
macOS:
81-
needs: [ubuntu, linux]
79+
needs: [ubuntu, linux, windows]
8280
runs-on: macOS-latest
8381

8482
env:
@@ -104,7 +102,7 @@ jobs:
104102
- run: make test
105103

106104
windows:
107-
needs: [ubuntu]
105+
needs: [ubuntu, linux]
108106
runs-on: windows-latest
109107

110108
steps:

0 commit comments

Comments
 (0)