Skip to content

Commit

Permalink
Exclude coverage tests in scheduled CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ferki committed Dec 24, 2021
1 parent 161f2fa commit d260145
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build_and_test.yml
Expand Up @@ -41,16 +41,24 @@ jobs:
- name: Build dist
run: dzil build --no-tgz --in build
- name: Install coverage dependencies
if: ${{ github.event_name != 'schedule' }}
run: cpanm Devel::Cover::Report::Coveralls
- name: Run extra tests
run: |
cd build
prove --timer --lib --recurse --jobs $(nproc) --shuffle xt
- name: Run tests
- name: Run tests with coverage
if: ${{ github.event_name != 'schedule' }}
run: |
cd build
HARNESS_PERL_SWITCHES=-MDevel::Cover=+ignore,^t/ prove --timer --lib --recurse --jobs $(nproc) --shuffle t/
- name: Run tests without coverage
if: ${{ github.event_name == 'schedule' }}
run: |
cd build
prove --timer --lib --recurse --jobs $(nproc) --shuffle t/
- name: Report coverage info to Coveralls
if: ${{ github.event_name != 'schedule' }}
run: |
cd build
cover -report coveralls
Expand Down

0 comments on commit d260145

Please sign in to comment.