-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (40 loc) · 1.1 KB
/
github_ci_default.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
perl: [ '5.34', '5.32', '5.24', '5.18', '5.14', '5.10' ]
include:
- perl: '5.32'
os: ubuntu-latest
coverage: true
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: perl -V
- run: cpanm ExtUtils::PL2Bat
- run: cpanm ExtUtils::MakeMaker
- run: cpanm File::ShareDir::Install
- run: cpanm --installdeps .
- name: Run tests (no coverage)
if: ${{ !matrix.coverage }}
run: prove -lv t
- name: Run tests (with coverage)
if: ${{ matrix.coverage }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cpanm -n Devel::Cover::Report::Coveralls
cover -test -report Coveralls