File tree Expand file tree Collapse file tree 2 files changed +88
-0
lines changed
Expand file tree Collapse file tree 2 files changed +88
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ pull_request :
6+ workflow_dispatch :
7+ # schedule:
8+ # - cron: '42 5 * * 0'
9+
10+ jobs :
11+ test-in-docker :
12+ runs-on : ubuntu-latest
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ perl-version :
17+ - ' 5.16'
18+ - ' 5.30'
19+ - ' 5.38'
20+ - ' 5.42'
21+ - ' latest'
22+ container :
23+ image : perldocker/perl-tester:${{ matrix.perl-version }} # https://hub.docker.com/r/perldocker/perl-tester
24+ name : Perl ${{ matrix.perl-version }}
25+ steps :
26+ - uses : actions/checkout@v6
27+ - name : Show Perl Version
28+ run : |
29+ perl -V
30+ - name : Regular tests
31+ run : |
32+ cpanm --installdeps --notest .
33+ perl Makefile.PL
34+ make
35+ make test
36+
37+ test-on-native-os :
38+ strategy :
39+ fail-fast : false
40+ matrix :
41+ runner :
42+ - ubuntu-latest
43+ - macos-latest
44+ - windows-latest
45+ perl :
46+ - ' 5.30'
47+ - ' 5.42'
48+ # exclude:
49+ # - runner: windows-latest
50+ # perl: '5.40'
51+
52+ runs-on : ${{matrix.runner}}
53+ name : OS ${{matrix.runner}} Perl ${{matrix.perl}}
54+
55+ steps :
56+ - uses : actions/checkout@v6
57+
58+ - name : Set up perl
59+ uses : shogo82148/actions-setup-perl@v1 # See https://github.com/shogo82148/actions-setup-perl
60+ with :
61+ perl-version : ${{ matrix.perl }}
62+ distribution : ${{ ( matrix.runner == 'windows-latest' && 'strawberry' ) || 'default' }}
63+
64+ - name : Show Perl Version
65+ run : |
66+ perl -V
67+
68+ - name : Install Modules
69+ run : |
70+ cpanm -v
71+ cpanm --installdeps --notest .
72+
73+ - name : Run tests on Linux and macOS
74+ if : ${{ matrix.runner != 'windows-latest' }}
75+ run : |
76+ perl Makefile.PL
77+ make
78+ make test
79+
80+ - name : Run tests on Windows
81+ if : ${{ matrix.runner == 'windows-latest' }}
82+ run : |
83+ perl Makefile.PL
84+ gmake
85+ gmake test
86+
87+
Original file line number Diff line number Diff line change 11\B\.git\b
2+ \B\.github\b
23^MANIFEST\.
34^Makefile$
45^Makefile.old$
You can’t perform that action at this time.
0 commit comments