-
Notifications
You must be signed in to change notification settings - Fork 59
35 lines (35 loc) · 1.02 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
name: ci
on:
pull_request:
push:
branches:
- "**"
jobs:
perl:
name: "Perl ${{matrix.perl}} on ${{matrix.os}}"
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
perl: ["5.32", "5.26"]
runs-on: "${{matrix.os}}"
steps:
- uses: actions/checkout@v2
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: "${{matrix.perl}}"
- run: perl -V
- name: Fix ExtUtils::MakeMaker for Perl 5.16
run: cpanm -n App::cpanminus ExtUtils::MakeMaker
- name: Install dependencies
run: |
cpanm -n Test::CPAN::Changes Test::Pod::Coverage Test::Pod Test::Spelling
cpanm -n Net::IDN::Encode Data::Validate::Domain Data::Validate::IP YAML::LibYAML
cpanm -n Test::JSON::Schema::Acceptance
cpanm -n --installdeps .
- name: Run tests
run: prove -l t/*.t
env:
AUTHOR_TESTING: 1
HARNESS_OPTIONS: j6
MOJO_LOG_LEVEL: info
TEST_ACCEPTANCE: 1