Skip to content

Commit 24cbf9f

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

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,24 @@ 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: true
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+
run: cover -report codecovbash
99+
- uses: codecov/codecov-action@v5
100+
with:
101+
fail_ci_if_error: true
102+
file: ./cover_db/codecov.json
103+
token: ${{ secrets.CODECOV_TOKEN }}
88104
test:
89105
runs-on: ubuntu-24.04
90106
name: Dockerless

0 commit comments

Comments
 (0)