Skip to content

Commit 7a628e6

Browse files
committed
ci: Collect statement coverage only
* And run with coverage only when also uploading the report Before we collected also branch and condition coverage, which resulted in a codecov.json file with items like "1/2" instead of just 1 or null.
1 parent 6a05891 commit 7a628e6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci-tests.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ jobs:
3434
perl Build.PL
3535
./Build build
3636
- name: Run tests
37+
if: matrix.perl != 'latest'
3738
run: |
38-
TEST_SHARED=1 TEST_SUBREAPER=1 cover -test -report codecovbash
39+
TEST_SHARED=1 TEST_SUBREAPER=1 prove -l t
40+
- name: Run tests with coverage
41+
if: matrix.perl == 'latest'
42+
run: |
43+
TEST_SHARED=1 TEST_SUBREAPER=1 PERL5OPT="-MDevel::Cover=-coverage,statement" prove -l t
44+
cover -report codecovbash
3945
- name: Upload coverage to ☂️ Codecov
4046
uses: codecov/codecov-action@v5
4147
if: matrix.perl == 'latest'

0 commit comments

Comments
 (0)