-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (39 loc) · 1.14 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
name: CI Tests
on:
push:
pull_request:
schedule:
- cron: '55 22 2 * *'
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['5.30', '5.32', '5.34', '5.36', '5.38', '5.40']
env:
PERL_CPANM_OPT: "--notest --force --skip-satisfied"
name: Perl ${{ matrix.version }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.version }}
install-modules-with: cpanm
- name: Install module
run: |
cpanm Dist::Zilla
dzil authordeps | xargs cpanm
export tmpbuild=$(mktemp --directory)
dzil build --in $tmpbuild
cpanm --quiet --notest Devel::Cover::Report::Coveralls Perl::Critic
dzil listdeps | xargs cpanm
- name: Dzil tests
run: dzil test --author
- name: Tests
run: |
PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -lrsv t
# - name: Coverall report
# run: cover -report coveralls