-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github workflow: comment and consolidate
- Loading branch information
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,6 @@ jobs: | |
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 | ||
|
@@ -28,6 +24,9 @@ jobs: | |
apt update | ||
apt install -y rsync | ||
- 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] | ||
|
@@ -36,11 +35,13 @@ jobs: | |
# 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: Install yath | ||
run: cpanm --notest Test2::Harness | ||
- name: Install testing libraries | ||
run: cpanm --notest Test2::Harness::Renderer::JUnit | ||
- 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 | ||
|