Skip to content

Commit 904dc8b

Browse files
committed
use perl-actions/perl-versions and use perl-tester
1 parent 03a28ec commit 904dc8b

File tree

1 file changed

+46
-26
lines changed

1 file changed

+46
-26
lines changed

.github/workflows/testsuite.yml

+46-26
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,47 @@ on:
99
pull_request:
1010

1111
jobs:
12+
13+
ubuntu:
14+
runs-on: ubuntu-latest
15+
16+
env:
17+
PERL_USE_UNSAFE_INC: 0
18+
AUTHOR_TESTING: 1
19+
AUTOMATED_TESTING: 1
20+
RELEASE_TESTING: 1
21+
PERL_CARTON_PATH: $GITHUB_WORKSPACE/local
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- run: perl -V
26+
- name: Install Dependencies
27+
uses: perl-actions/install-with-cpm@v1
28+
with:
29+
cpanfile: "cpanfile"
30+
- run: perl Makefile.PL
31+
- run: make
32+
- run: make test
33+
34+
perl-versions:
35+
runs-on: ubuntu-latest
36+
name: List Perl versions
37+
outputs:
38+
perl-versions: ${{ steps.action.outputs.perl-versions }}
39+
steps:
40+
- id: action
41+
uses: perl-actions/perl-versions@v1
42+
with:
43+
since-perl: v5.10
44+
with-devel: true
45+
1246
perl:
1347
runs-on: ubuntu-latest
1448

49+
needs:
50+
- ubuntu
51+
- perl-versions
52+
1553
env:
1654
PERL_USE_UNSAFE_INC: 0
1755
AUTHOR_TESTING: 1
@@ -22,33 +60,15 @@ jobs:
2260
strategy:
2361
fail-fast: false
2462
matrix:
25-
perl-version:
26-
- "5.32"
27-
- "5.30"
28-
- "5.28"
29-
- "5.26"
30-
- "5.24"
31-
- "5.22"
32-
- "5.20"
33-
- "5.18"
34-
- "5.16"
35-
- "5.14"
36-
- "5.12"
37-
- "5.10"
38-
# - '5.8'
39-
40-
container:
41-
image: perldocker/perl-tester:${{ matrix.perl-version }}
63+
perl-version: ${{ fromJson (needs.perl-versions.outputs.perl-versions) }}
64+
65+
container: perldocker/perl-tester:${{ matrix.perl-version }}
4266

4367
steps:
44-
- uses: actions/checkout@v1
45-
- name: perl -V
46-
run: perl -V
68+
- uses: actions/checkout@v4
69+
- run: perl -V
4770
- name: Install Dependencies
4871
run: cpm install -g --show-build-log-on-failure
49-
- name: perl Makefile.PL
50-
run: perl Makefile.PL
51-
- name: make
52-
run: make
53-
- name: Run Tests
54-
run: make test
72+
- run: perl Makefile.PL
73+
- run: make
74+
- run: make test

0 commit comments

Comments
 (0)