1414jobs :
1515 build-job :
1616 name : Build distribution
17- runs-on : ubuntu-latest
17+ runs-on : ubuntu-20.04
1818 container :
1919 image : perldocker/perl-tester:5.32
2020 steps :
3333 if : ${{ github.actor != 'nektos/act' }}
3434 coverage-job :
3535 needs : build-job
36- runs-on : ubuntu-latest
36+ runs-on : ubuntu-20.04
3737 container :
3838 image : perldocker/perl-tester:5.32
3939 steps :
4545 - name : Install deps and test
4646 run : cpan-install-dist-deps && test-dist
4747 env :
48- AUTHOR_TESTING : 1
49- AUTOMATED_TESTING : 1
50- EXTENDED_TESTING : 1
5148 CODECOV_TOKEN : ${{secrets.CODECOV_TOKEN}}
5249 httpbin-job :
5350 needs : build-job
@@ -71,13 +68,13 @@ jobs:
7168 -v
7269 $(pwd):/home/dist perldocker/perl-tester:5.32
7370 /bin/sh -c "cd /home/dist && cpan-install-dist-deps && prove -lv xt/rt-112313.t"
74- test-job :
71+ ubuntu- test-job :
7572 needs : build-job
76- runs-on : ${{ matrix.os }}
73+ runs-on : " ubuntu-latest "
7774 strategy :
78- fail-fast : false
75+ fail-fast : true
7976 matrix :
80- os : [ubuntu-latest, macos-latest, windows-latest ]
77+ os : [ubuntu-20.04 ]
8178 perl-version :
8279 - " 5.8"
8380 - " 5.10"
@@ -92,26 +89,12 @@ jobs:
9289 - " 5.28"
9390 - " 5.30"
9491 - " 5.32"
95- exclude :
96- - os : windows-latest
97- perl-version : " 5.8"
98- - os : windows-latest
99- perl-version : " 5.10"
100- - os : windows-latest
101- perl-version : " 5.12"
102- - os : windows-latest
103- perl-version : " 5.14"
104- - os : windows-latest
105- perl-version : " 5.16"
106- - os : windows-latest
107- perl-version : " 5.32"
108- name : Perl ${{ matrix.perl-version }} on ${{ matrix.os }}
92+ name : perl ${{ matrix.perl-version }} on ${{ matrix.os }}
10993 steps :
110- - name : Set Up Perl
94+ - name : set up perl
11195 uses : shogo82148/actions-setup-perl@v1
11296 with :
11397 perl-version : ${{ matrix.perl-version }}
114- distribution : strawberry # this option only used on Windows
11598 - uses : actions/download-artifact@v2
11699 with :
117100 name : build_dir
@@ -120,8 +103,83 @@ jobs:
120103 uses : perl-actions/install-with-cpm@v1
121104 with :
122105 cpanfile : " cpanfile"
123- args : " --with-suggests --with-recommends --with-test"
106+ args : " --with-suggests --with-recommends --with-test --with-develop"
107+ - run : prove -lr t xt
108+ env :
109+ AUTHOR_TESTING : 1
110+ RELEASE_TESTING : 1
111+ macos-test-job :
112+ needs : ubuntu-test-job
113+ runs-on : " macos-latest"
114+ strategy :
115+ fail-fast : true
116+ matrix :
117+ os : [macos-latest]
118+ perl-version :
119+ - " 5.8"
120+ - " 5.10"
121+ - " 5.12"
122+ - " 5.14"
123+ - " 5.16"
124+ - " 5.18"
125+ - " 5.20"
126+ - " 5.22"
127+ - " 5.24"
128+ - " 5.26"
129+ - " 5.28"
130+ - " 5.30"
131+ - " 5.32"
132+ name : perl ${{ matrix.perl-version }} on ${{ matrix.os }}
133+ steps :
134+ - name : set up perl
135+ uses : shogo82148/actions-setup-perl@v1
136+ with :
137+ perl-version : ${{ matrix.perl-version }}
138+ - uses : actions/download-artifact@v2
139+ with :
140+ name : build_dir
141+ path : .
142+ - name : install deps using cpm
143+ uses : perl-actions/install-with-cpm@v1
144+ with :
145+ cpanfile : " cpanfile"
146+ args : " --with-suggests --with-recommends --with-test --with-develop"
124147 - run : prove -lr t xt
125148 env :
126149 AUTHOR_TESTING : 1
127150 RELEASE_TESTING : 1
151+ windows-test-job :
152+ needs : ubuntu-test-job
153+ runs-on : " windows-latest"
154+ strategy :
155+ fail-fast : true
156+ matrix :
157+ os : [windows-latest]
158+ perl-version :
159+ - " 5.18"
160+ - " 5.20"
161+ - " 5.22"
162+ - " 5.24"
163+ - " 5.26"
164+ - " 5.28"
165+ - " 5.30"
166+ name : perl ${{ matrix.perl-version }} on ${{ matrix.os }}
167+ steps :
168+ - name : set up perl
169+ uses : shogo82148/actions-setup-perl@v1
170+ with :
171+ perl-version : ${{ matrix.perl-version }}
172+ distribution : strawberry # this option only used on windows
173+ - uses : actions/download-artifact@v2
174+ with :
175+ name : build_dir
176+ path : .
177+ - name : install deps using cpm
178+ uses : perl-actions/install-with-cpm@v1
179+ with :
180+ cpanfile : " cpanfile"
181+ args : " --with-suggests --with-recommends --with-test"
182+ - run : prove -lr t
183+ env :
184+ AUTHOR_TESTING : 0
185+ RELEASE_TESTING : 0
0 commit comments