-
Notifications
You must be signed in to change notification settings - Fork 60
55 lines (53 loc) · 2.23 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
47
48
49
50
51
52
53
54
name: "perl test suite"
on: [ push, pull_request ]
jobs:
the-tests:
runs-on: ubuntu-latest
container:
image: perldocker/perl-tester:5.36-bookworm
strategy:
fail-fast: false
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Makefile.PL
run: |
perl Makefile.PL && make
- name: Install prereqs (apt)
# If we install "default-mysql-server", the web tests will run, which
# is good, but they will run forever when we get to
# t/pause_2017/action/change_passwd.t not responding to SIGTERM or
# SIGKILL. I seem to recall something about signals being weird on
# Actions, but not how... -- rjbs, 2023-05-05
run: |
apt update
apt install -y rsync default-mysql-server
- name: Install prereqs (cpanm, pinned versions)
# PAUSE is run (for now?) on v5.16, and the latest versions from the
# CPAN don't install on v5.16, so we install these version that do.
# -- rjbs, 2023-05-05
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 --notest --installdeps .
- name: Run the tests
run: prove -lr -j4 t
# - name: Install yath and JUnit renderer
# run: cpanm --notest Test2::Harness Test2::Harness::Renderer::JUnit
# - name: Run the tests
# # We disable Test::Perl::Critic because of a bug in
# # Test2::Harness::Renderer::JUnit. See:
# # https://github.com/cpanel/Test2-Harness-Renderer-JUnit/issues/16
# # -- rjbs, 2023-05-05
# run: |
# NO_PERL_CRITIC=1 JUNIT_TEST_FILE="/tmp/test-output.xml" ALLOW_PASSING_TODOS=1 yath test --renderer=Formatter --renderer=JUnit -D
# - 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