-
Notifications
You must be signed in to change notification settings - Fork 60
47 lines (45 loc) · 1.46 KB
/
perl-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
name: "perl test suite"
on: [ push, pull_request ]
jobs:
the-tests:
runs-on: ubuntu-latest
container:
image: perldocker/perl-tester:5.16
strategy:
fail-fast: false
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Install cpanminus
run: |
curl https://cpanmin.us/ > /tmp/cpanm
chmod u+x /tmp/cpanm
- name: Makefile.PL
run: |
perl Makefile.PL && make
- name: Install prereqs (apt)
run: |
apt install -y rsync
- name: Install prereqs (cpanm, pinned versions)
run: |
cpanm Log::[email protected]
cpanm [email protected]
- name: Install prereqs (cpan)
# This could probably be made more efficient by looking at what it's
# installing via cpanm that could, instead, be installed from apt. I
# may do that later, but for now, it's fine! -- rjbs, 2023-01-07
run: |
cpanm --installdeps .
- name: Install yath
run: cpanm --notest Test2::Harness
- name: Install testing libraries
run: cpanm --notest Test2::Harness::Renderer::JUnit
- name: Run the tests
run: |
ALLOW_PASSING_TODOS=1 yath test
- name: Publish test report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
check_name: JUnit Report
report_paths: /tmp/test-output.xml