-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (42 loc) · 1.23 KB
/
test.yml
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
name: test
on:
pull_request:
push:
paths-ignore:
- '**.md'
- '**.pod'
env:
CI: true
jobs:
skip-duplicate-runs:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@ea548f2a2a08c55dcb111418ca62181f7887e297
with:
concurrent_skipping: 'same_content'
paths_ignore: '["**/*.md", "**/*.pod"]'
test:
needs: skip-duplicate-runs
if: ${{ needs.skip-duplicate-runs.outputs.should_skip != 'true' }}
name: 'Perl v${{ matrix.perl }} on ${{ matrix.os }}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
perl: ['5.8', '5.10', '5.20', '5.30', '5.32']
steps:
- name: checkout
uses: actions/checkout@v2
- name: set up perl v${{ matrix.perl }}
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: perl -V
# this also upgrades ExtUtils::MakeMaker to the latest version
- run: cpanm --notest Test::Pod
- run: cpanm --installdeps --notest .
- run: perl Makefile.PL
- run: make test