Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
id: cache
with:
path: /usr/local/lib/perl5
key: ${{ runner.os }}-perl-${{ matrix.perl-version }}-${{ hashFiles('cpanfile') }}
key: ${{ runner.os }}-perl-${{ matrix.perl-version }}-${{ hashFiles('cpanfile', '.github/workflows/test.yml') }}

- name: install deps
if: steps.cache.outputs.cache-hit != 'true'
run: |
cpanm --notest --installdeps .
cpanm -n Devel::Cover Devel::Cover::Report::Coveralls
cpanm -n Devel::Cover Devel::Cover::Report::Coveralls TAP::Harness::JUnit
- name: test
run: prove -Ilib -r
run: prove -Ilib -r --harness TAP::Harness::JUnit
env:
HARNESS_PERL_SWITCHES: "-MDevel::Cover=+ignore,inc"

Expand All @@ -45,4 +45,10 @@ jobs:
cover -report coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
if: matrix.perl-version == 'latest'
if: matrix.perl-version == 'latest'
- name: Archive results
uses: actions/upload-artifact@v1
with:
name: report
path: junit_output.xml
if: always()