Repository navigation
58 lines (56 loc) · 1.57 KB
/
Copy pathcpan-dzil-test.yml
File metadata and controls
58 lines (56 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Unit tests
on:
workflow_call:
jobs:
testing:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- 'windows-latest'
- 'macos-latest'
- 'ubuntu-latest'
perl:
- '5.20'
- '5.22'
- '5.24'
- '5.26'
- '5.28'
- '5.30'
- '5.32'
- '5.34'
- 'latest'
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1.44.2
with:
perl-version: ${{ matrix.perl }}
- name: Perl version
run: perl -V
- name: Install Dist::Zilla
run: cpanm --notest Dist::Zilla
- name: Install Dist::Zilla plugins
run: dzil authordeps | cpanm --notest
- name: Install modules
run: dzil listdeps --author | cpanm --notest
- name: Run tests
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
dzil test
- name: Archive CPAN logs on Windows
if: ${{ failure() && matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v7
with:
name: cpan_log
path: C:\Users\RUNNER~1\.cpanm\work\*\build.log
retention-days: 5
- name: Archive CPAN logs on Unix
if: ${{ failure() && matrix.os != 'windows-latest' }}
uses: actions/upload-artifact@v7
with:
name: cpan_log
path: /home/runner/.cpanm/work/*/build.log
retention-days: 5