forked from oalders/http-browserdetect
-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (90 loc) · 2.32 KB
/
test.yml
File metadata and controls
92 lines (90 loc) · 2.32 KB
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
91
92
---
name: test
on: [push, pull_request]
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
strategy:
max-parallel: 1
container:
image: perldocker/perl-tester:5.30
steps:
- uses: actions/checkout@v1
- name: perl -V
run: perl -V
- name: Get latest author bundle
run: >
cpm install -g
--show-build-log-on-failure
Dist::Zilla::PluginBundle::Author::OALDERS
- name: Install author deps
run: dzil authordeps | xargs cpm install -g --show-build-log-on-failure
- name: Build
run: dzil build --no-tgz --in dzil_build_dir
- uses: actions/upload-artifact@master
with:
name: build_dir
path: dzil_build_dir
- name: Install deps
if: success()
run: >
cd dzil_build_dir
&& cpm install -g
--cpanfile cpanfile
--with-develop
--with-suggests
--show-build-log-on-failure
- name: Run Tests with coverage
if: success()
env:
AUTHOR_TESTING: 1
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
HARNESS_PERL_SWITCHES: "-MDevel::Cover=+ignore,^local/|^t/|^xt"
RELEASE_TESTING: 1
run: >
cpm install -g
--show-build-log-on-failure
Devel::Cover::Report::Codecov &&
cd dzil_build_dir
&& prove -lvr --jobs 2 t xt
&& cover -report codecov
test:
runs-on: ubuntu-latest
name: Test distribution
needs: build
strategy:
matrix:
perl-version:
- "5.10"
- "5.12"
- "5.14"
- "5.16"
- "5.18"
- "5.20"
- "5.22"
- "5.24"
- "5.26"
- "5.28"
- "5.30"
container:
image: perldocker/perl-tester:${{ matrix.perl-version }}
env:
AUTHOR_TESTING: 1
RELEASE_TESTING: 1
steps:
- uses: actions/download-artifact@master
with:
name: build_dir
path: .
- name: Install deps
if: success()
run: >
cpm install -g
--cpanfile cpanfile
--with-develop
--with-suggests
--show-build-log-on-failure
- name: Run Tests
if: success()
run: prove -lr --jobs 2 t xt