-
Notifications
You must be signed in to change notification settings - Fork 3
78 lines (65 loc) · 1.98 KB
/
ci.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Perl
on:
push:
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest, macos-latest, windows-latest]
perl: [ '5.32' ]
firefox: [ 'latest-beta', 'latest' ] # 'latest-devedition', 'latest-esr',
runs-on: ${{matrix.runner}}
name: OS ${{matrix.runner}} Perl ${{matrix.perl}}
steps:
- uses: actions/checkout@v4
- name: Set up firefox
uses: browser-actions/setup-firefox@latest
with:
firefox-version: ${{ matrix.firefox }}
- name: Show firefox version
run: |
firefox --version
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
install-modules: 'Archive::Zip Config::INI::Reader Crypt::URandom Encode File::Temp HTTP::Daemon IPC::Open3 JSON PDF::API2 Scalar::Util Text::CSV_XS Time::Local Term::ReadKey Test::CheckManifest URI URI::Escape URI::URL XML::Parser'
install-modules-with: cpanm
install-modules-args: --with-develop --with-configure
enable-modules-cache: true
distribution: ${{ ( startsWith( matrix.runner, 'windows-' ) && 'strawberry' ) || 'default' }}
- name: Show Perl Version
run: |
perl -v
- name: Install Modules
env:
AUTOMATED_TESTING: 1
run: |
cpanm -v
cpanm --installdeps .
cpanm Test::CheckManifest
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 16
- name: Show Yarn
run: |
yarn --version
- name: Run tests under gmake (on windows)
if: ${{ startsWith(matrix.runner, 'windows-') }}
env:
RELEASE_TESTING: 1
run: |
perl Makefile.PL
gmake
gmake test
- name: Run tests under make (not windows)
if: ${{ ! startsWith(matrix.runner, 'windows-') }}
env:
RELEASE_TESTING: 1
run: |
perl Makefile.PL
make
make test