Skip to content

Commit 68bdf73

Browse files
committed
Restrict author and release tests to build and coverage runs
Test on 5.32 and 5.34 Add workflow_dispatch as a GH workflow trigger Use latest v1 of actions-setup-perl Use v2 tag for download-artifact Fix build step label Install via cpm rather than cpm in build step Don't install development deps for Linux CI Bump install-with-cpm action to 1.4
1 parent 0a63c40 commit 68bdf73

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

.github/workflows/build-and-test.yml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- "*"
1111
schedule:
1212
- cron: "15 4 * * 0" # Every Sunday morning
13+
workflow_dispatch:
1314

1415
jobs:
1516
build:
@@ -18,7 +19,7 @@ jobs:
1819
strategy:
1920
max-parallel: 1
2021
container:
21-
image: perldocker/perl-tester:5.30
22+
image: perldocker/perl-tester:5.34
2223
steps:
2324
- uses: actions/checkout@v2
2425
- name: Install author deps
@@ -30,7 +31,7 @@ jobs:
3031
- name: Maybe skip Changes test
3132
if: github.ref == 'refs/heads/master'
3233
run: rm dzil_build_dir/xt/release/changes_has_content.t && perl -pi -e "s|'xt/release/changes_has_content.t'||g" dzil_build_dir/xt/author/*
33-
- uses: actions/upload-artifact@master
34+
- uses: actions/upload-artifact@v2
3435
with:
3536
name: build_dir
3637
path: dzil_build_dir
@@ -76,13 +77,15 @@ jobs:
7677
- "5.26"
7778
- "5.28"
7879
- "5.30"
80+
- "5.32"
81+
- "5.34"
7982
container:
8083
image: perldocker/perl-tester:${{ matrix.perl-version }}
8184
env:
82-
AUTHOR_TESTING: 1
83-
RELEASE_TESTING: 1
85+
AUTHOR_TESTING: 0
86+
RELEASE_TESTING: 0
8487
steps:
85-
- uses: actions/download-artifact@master
88+
- uses: actions/download-artifact@v2
8689
with:
8790
name: build_dir
8891
path: .
@@ -91,12 +94,11 @@ jobs:
9194
run: >
9295
cpm install -g
9396
--cpanfile cpanfile
94-
--with-develop
9597
--with-suggests
9698
--show-build-log-on-failure
9799
- name: Run Tests
98100
if: success()
99-
run: prove -lr --jobs 2 t xt
101+
run: prove -lr --jobs 2 t
100102
test_macos:
101103
runs-on: ${{ matrix.os }}
102104
strategy:
@@ -115,29 +117,30 @@ jobs:
115117
- "5.26"
116118
- "5.28"
117119
- "5.30"
120+
- "5.34"
118121
name: Perl ${{ matrix.perl-version }} on ${{ matrix.os }}
119122
needs: build
120123
steps:
121124
- uses: actions/checkout@v2
122125
- name: Set Up Perl
123-
uses: shogo82148/actions-setup-perl@v1.3.0
126+
uses: shogo82148/actions-setup-perl@v1
124127
with:
125128
perl-version: ${{ matrix.perl-version }}
126-
- uses: actions/download-artifact@master
129+
- uses: actions/download-artifact@v2
127130
with:
128131
name: build_dir
129132
path: .
130133
- run: perl -V
131-
- name: install deps using cpanm
132-
uses: perl-actions/install-with-cpm@v1.3
134+
- name: install deps using cpm
135+
uses: perl-actions/install-with-cpm@v1.4
133136
with:
134137
cpanfile: "cpanfile"
135138
args: "--with-recommends --with-suggests --with-test"
136139
sudo: false
137-
- run: prove -l t xt
140+
- run: prove -l t
138141
env:
139-
AUTHOR_TESTING: 1
140-
RELEASE_TESTING: 1
142+
AUTHOR_TESTING: 0
143+
RELEASE_TESTING: 0
141144
test_windows:
142145
runs-on: ${{ matrix.os }}
143146
strategy:
@@ -162,20 +165,20 @@ jobs:
162165
steps:
163166
- uses: actions/checkout@v2
164167
- name: Set Up Perl
165-
uses: shogo82148/actions-setup-perl@v1.3.0
168+
uses: shogo82148/actions-setup-perl@v1
166169
with:
167170
perl-version: ${{ matrix.perl-version }}
168-
- uses: actions/download-artifact@master
171+
- uses: actions/download-artifact@v2
169172
with:
170173
name: build_dir
171174
path: .
172175
- name: install deps using cpanm
173-
uses: perl-actions/install-with-cpanm@v1.1
176+
uses: perl-actions/install-with-cpm@v1.4
174177
with:
175178
cpanfile: "cpanfile"
176179
sudo: false
177180
- run: perl -V
178-
- run: prove -l t xt
181+
- run: prove -l t
179182
env:
180-
AUTHOR_TESTING: 1
181-
RELEASE_TESTING: 1
183+
AUTHOR_TESTING: 0
184+
RELEASE_TESTING: 0

0 commit comments

Comments
 (0)