-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (45 loc) · 1.29 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
53
54
55
name: test
on:
pull_request:
push:
paths-ignore:
- 'Changes'
- 'README'
- '.editorconfig'
- '**.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@f75f66ce1886f00957d99748a42c724f4330bdcf
with:
concurrent_skipping: 'same_content'
paths: '["**/*.{h,xs,pm,t,PL}"]'
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.38']
steps:
- name: checkout
uses: actions/checkout@v4
- 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