-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (60 loc) · 1.52 KB
/
tests.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
name: 'Unit Tests'
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
perl-version:
- '5.36'
- '5.16'
include:
- perl-version: '5.36'
os: ubuntu-latest
coverage: true
container:
image: perldocker/perl-tester:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@main
with:
submodules: recursive
- run: perl -V
- run: cpanm --notest --installdeps --verbose .
- run: perl Build.PL
- run: ./Build
- name: Run Tests (no coverage)
if: ${{ !matrix.coverage }}
run: prove -wlvmb 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
deploy:
needs: test
runs-on: ubuntu-latest
env:
PAUSE_USER: ${{ secrets.PAUSE_USER }}
PAUSE_PASS: ${{ secrets.PAUSE_PASS }}
strategy:
matrix:
perl-version:
- '5.36'
container:
image: perldocker/perl-tester:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@main
with:
submodules: recursive
- run: perl -V
- run: cpanm --notest --installdeps --verbose .
- run: cpanm MetaCPAN::Client
- run: perl Build.PL
- run: ./Build
- run: ./Build deploy