1
- name : perl
1
+ name : ci
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- ' *'
6
7
tags-ignore :
7
8
- ' *'
8
9
pull_request :
10
+
9
11
jobs :
12
+
10
13
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
12
38
strategy :
13
39
fail-fast : false
14
40
matrix :
15
41
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
+ ]
17
49
include :
18
50
- perl-version : ' 5.32'
19
51
os : ubuntu-latest
20
52
more-test : true
21
53
coverage : true
22
- container : perl:${{ matrix.perl-version }}
54
+
55
+ container :
56
+ image : perldocker/perl-tester:${{ matrix.perl-version }}
57
+
23
58
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
26
65
- run : perl -V
27
- - name : Run extended tests
66
+ - name : Install extra deps
28
67
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
31
72
- name : Run tests
32
73
if : ${{ !matrix.coverage }}
33
74
run : prove -l -j4 t
@@ -38,20 +79,22 @@ jobs:
38
79
run : |
39
80
cpanm -n Devel::Cover::Report::Coveralls
40
81
HARNESS_OPTIONS='j4' cover -test -report Coveralls
82
+
41
83
non-linux :
42
84
runs-on : ${{ matrix.os }}
85
+ needs : [ubuntu]
43
86
strategy :
44
87
fail-fast : false
45
88
matrix :
46
89
os : [macos-latest, windows-latest]
47
90
steps :
48
- - uses : actions/checkout@v2
91
+ - uses : actions/checkout@v3
49
92
- uses : shogo82148/actions-setup-perl@v1
50
93
with :
51
94
distribution : strawberry # ignored non-windows
52
- - uses : perl-actions/install-with-cpanm@v1
95
+ - uses : perl-actions/install-with-cpanm@stable
53
96
with :
54
- args : -n - -installdeps .
97
+ args : --installdeps .
55
98
- run : perl -V
56
99
- name : Run tests
57
100
run : prove -l -j4 t
0 commit comments