Skip to content

Commit 1e3bacf

Browse files
committed
Try to enable coverage in playwright testing
1 parent a118da8 commit 1e3bacf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,26 @@ jobs:
8383
node-version: 22
8484
- name: Install Playwright Browsers
8585
run: ./bin/install-playwright
86+
- name: Install Codecovbash
87+
uses: perl-actions/install-with-cpm@v1
88+
with:
89+
install: |
90+
Devel::Cover
91+
Devel::Cover::Report::Codecovbash
92+
sudo: false
8693
- name: Run Playwright tests
8794
run: npx playwright test
95+
env:
96+
PERL5OPT: "-MDevel::Cover=+ignore,^local/|^templates/|^t/|yaml$"
97+
- name: Generate Codecov report
98+
if: steps.coverage.outputs.enabled
99+
run: cover -report codecovbash
100+
- uses: codecov/codecov-action@v5
101+
if: steps.coverage.outputs.enabled
102+
with:
103+
fail_ci_if_error: true
104+
file: ./cover_db/codecov.json
105+
token: ${{ secrets.CODECOV_TOKEN }}
88106
test:
89107
runs-on: ubuntu-24.04
90108
name: Dockerless

0 commit comments

Comments
 (0)