Skip to content

Commit

Permalink
Use Coveralls to report coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Oct 22, 2022
1 parent 89356a3 commit cc386e4
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/perltest.yml
Expand Up @@ -21,7 +21,7 @@ jobs:
perl: [ 'latest' ]
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
Expand All @@ -34,9 +34,23 @@ jobs:
run: cpanm --installdeps .
- name: Archive CPAN logs
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: cpan_log
path: .cpanm/work/*/build.log
- name: Run tests
run: prove -lv t

coverage:
runs-on: ubuntu-latest
container: davorg/perl-coveralls:latest
name: Test coverage
steps:
- uses: actions/checkout@v3
- name: Install modules
run: cpanm -n --installdeps .
- name: Coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cover -test -report Coveralls

0 comments on commit cc386e4

Please sign in to comment.