-
Notifications
You must be signed in to change notification settings - Fork 89
90 lines (81 loc) · 2.48 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
79
80
81
82
83
84
85
86
87
88
89
90
---
name: Run Tests
# yamllint disable-line rule:truthy
on:
push:
branches:
- "**"
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, windows-latest ]
perl: [ "5" ]
include:
- { os: "ubuntu-latest", perl: "5.12" }
- { os: "ubuntu-latest", perl: "5.14" }
- { os: "ubuntu-latest", perl: "5.16" }
- { os: "ubuntu-latest", perl: "5.18" }
- { os: "ubuntu-latest", perl: "5.20" }
- { os: "ubuntu-latest", perl: "5.22" }
- { os: "ubuntu-latest", perl: "5.24" }
- { os: "ubuntu-latest", perl: "5.24" }
- { os: "ubuntu-latest", perl: "5.26" }
- { os: "ubuntu-latest", perl: "5.28" }
- { os: "ubuntu-latest", perl: "5.30" }
- { os: "ubuntu-latest", perl: "5.32" }
- { os: "ubuntu-latest", perl: "5.34" }
- { os: "ubuntu-latest", perl: "5.36" }
- { os: "ubuntu-latest", perl: "5.36", perl-threaded: true }
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
if: matrix.os != 'windows-latest'
with:
perl-version: ${{ matrix.perl }}
multi-thread: ${{ matrix.perl-threaded }}
- name: Set up perl (Strawberry)
uses: shogo82148/actions-setup-perl@v1
if: matrix.os == 'windows-latest'
with:
distribution: "strawberry"
- run: perl -V
- name: Install Perl deps
run: |
cpanm --notest --installdeps .
- name: Install optional Perl deps
run: |
# for database format
cpanm --notest Sereal
# for tests
cpanm --notest DBM::Deep Readonly Moose
- name: Install Perl recommend deps
run:
cpanm --notest
Template
PPI::HTML
Perl::Tidy
Pod::Coverage
Pod::Coverage::CountParents
Parallel::Iterator
JSON::MaybeXS
Test::Differences
Browser::Open
Capture::Tiny
Class::XSAccessor
Moo
namespace::clean
HTML::Parser
Sereal::Decoder
Sereal::Encoder
- name: Install develop deps
run: |
cpanm --notest --installdeps --with-develop .
- name: Run tests
run:
cpanm --verbose --test-only .