-
Notifications
You must be signed in to change notification settings - Fork 10
65 lines (52 loc) · 1.22 KB
/
unit-tests.yaml
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
name: Unit Tests
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
build:
strategy:
matrix:
os:
- ubuntu-20.04
# no libssl on windows
# - windows-latest
perl:
- '5.30'
- '5.32'
fail-fast: false
name: perl${{ matrix.perl }}/${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: CPAN Cache
id: cpan-cache
uses: actions/cache@v1
with:
path: thirdparty
key: ${{ matrix.os }}-cpan-${{ matrix.perl }}-${{ hashFiles('Makefile.PL') }}
- name: Install Coveralls
run: |
cpanm --notest Devel::Cover::Report::Coveralls
- name: Build
run: |
perl Makefile.PL
if make thirdparty; then
:
else
cat thirdparty/work/*/build.log
exit 1
fi
- name: Test
run: |
env COVERALLS_REPO_TOKEN=${{ secrets.GITHUB_TOKEN }} cover -test -report coveralls