Skip to content

Commit

Permalink
Report code coverage to Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
ferki committed Jul 9, 2021
1 parent 64137f4 commit 27f3e17
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,20 @@ jobs:
run: perlcritic lib t xt
- name: Build dist
run: dzil build --no-tgz --in build
- name: Install Devel::Cover::Report::Coveralls
run: cpanm Devel::Cover::Report::Coveralls
- name: Run tests
run: |
cd build
prove --timer --lib --recurse --jobs $(nproc) --shuffle t xt
prove --timer --lib --recurse --jobs $(nproc) --shuffle xt
HARNESS_PERL_SWITCHES=-MDevel::Cover=+ignore,^t/ prove --timer --lib --recurse --jobs $(nproc) --shuffle t/
- name: Report coverage info to Coveralls
run: |
cd build
cover -report coveralls
rm -rf cover_db
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload build results
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 27f3e17

Please sign in to comment.