Skip to content

Commit 059d95b

Browse files
atoomicmohawk2
authored andcommitted
Smoke on some extra versions of Perl
Add an extra 'ubuntu' job to run first as a buffer and requirement for all other jobs. Smoke some extra Perl versions. Bump actions/checkout to use v3 Use 'perl-actions/install-with-cpanm' workflow. Use preset perl-tester containers.
1 parent 6be9a6f commit 059d95b

File tree

1 file changed

+55
-12
lines changed

1 file changed

+55
-12
lines changed

.github/workflows/ci.yml

Lines changed: 55 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,74 @@
1-
name: perl
1+
name: ci
2+
23
on:
34
push:
45
branches:
56
- '*'
67
tags-ignore:
78
- '*'
89
pull_request:
10+
911
jobs:
12+
1013
ubuntu:
11-
runs-on: ${{ matrix.os }}
14+
env:
15+
PERL_USE_UNSAFE_INC: 0
16+
AUTHOR_TESTING: 1
17+
AUTOMATED_TESTING: 1
18+
RELEASE_TESTING: 1
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- run: perl -V
25+
- name: Install dependencies
26+
uses: perl-actions/install-with-cpanm@stable
27+
with:
28+
args: --with-develop --with-recommends .
29+
- run: sudo perl Makefile.PL
30+
- run: sudo make
31+
- run: make test
32+
- run: sudo make install
33+
34+
linux:
35+
name: "linux ${{ matrix.perl-version }}"
36+
needs: [ubuntu]
37+
runs-on: ubuntu-latest
1238
strategy:
1339
fail-fast: false
1440
matrix:
1541
os: [ubuntu-latest]
16-
perl-version: ['5.10', '5.14', '5.28']
42+
perl-version: [
43+
"5.36",
44+
"5.34",
45+
"5.30",
46+
"5.14",
47+
"5.10"
48+
]
1749
include:
1850
- perl-version: '5.32'
1951
os: ubuntu-latest
2052
more-test: true
2153
coverage: true
22-
container: perl:${{ matrix.perl-version }}
54+
55+
container:
56+
image: perldocker/perl-tester:${{ matrix.perl-version }}
57+
2358
steps:
24-
- uses: actions/checkout@v2
25-
- run: cpanm -n --installdeps .
59+
- uses: actions/checkout@v3
60+
- name: Install deps
61+
uses: perl-actions/install-with-cpanm@stable
62+
with:
63+
args: --installdeps .
64+
sudo: false
2665
- run: perl -V
27-
- name: Run extended tests
66+
- name: Install extra deps
2867
if: ${{ matrix.more-test }}
29-
run: |
30-
cpanm -n --installdeps --with-develop --with-recommends .
68+
uses: perl-actions/install-with-cpanm@stable
69+
with:
70+
args: --with-develop --with-recommends .
71+
sudo: false
3172
- name: Run tests
3273
if: ${{ !matrix.coverage }}
3374
run: prove -l -j4 t
@@ -38,20 +79,22 @@ jobs:
3879
run: |
3980
cpanm -n Devel::Cover::Report::Coveralls
4081
HARNESS_OPTIONS='j4' cover -test -report Coveralls
82+
4183
non-linux:
4284
runs-on: ${{ matrix.os }}
85+
needs: [ubuntu]
4386
strategy:
4487
fail-fast: false
4588
matrix:
4689
os: [macos-latest, windows-latest]
4790
steps:
48-
- uses: actions/checkout@v2
91+
- uses: actions/checkout@v3
4992
- uses: shogo82148/actions-setup-perl@v1
5093
with:
5194
distribution: strawberry # ignored non-windows
52-
- uses: perl-actions/install-with-cpanm@v1
95+
- uses: perl-actions/install-with-cpanm@stable
5396
with:
54-
args: -n --installdeps .
97+
args: --installdeps .
5598
- run: perl -V
5699
- name: Run tests
57100
run: prove -l -j4 t

0 commit comments

Comments
 (0)