Skip to content

Commit 726cb9f

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

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,31 @@ jobs:
7777
- name: Run Perl tests
7878
run: >
7979
docker run -d -i -p 8000:80
80+
-e PERL5OPT='-MDevel::Cover=+ignore,^local/|^templates/|^t/|yaml$'
81+
-e HARNESS_ACTIVE=1
82+
-v $(pwd):/app
8083
${{ steps.docker-build-test.outputs.imageid }}
8184
- uses: actions/setup-node@v4
8285
with:
8386
node-version: 22
8487
- name: Install Playwright Browsers
8588
run: ./bin/install-playwright
89+
- name: Install Codecovbash
90+
uses: perl-actions/install-with-cpm@v1
91+
with:
92+
install: |
93+
Devel::Cover
94+
Devel::Cover::Report::Codecovbash
95+
sudo: true
8696
- name: Run Playwright tests
8797
run: npx playwright test
98+
- name: Generate Codecov report
99+
run: cover -report codecovbash
100+
- uses: codecov/codecov-action@v5
101+
with:
102+
fail_ci_if_error: true
103+
file: ./cover_db/codecov.json
104+
token: ${{ secrets.CODECOV_TOKEN }}
88105
test:
89106
runs-on: ubuntu-24.04
90107
name: Dockerless

0 commit comments

Comments
 (0)