Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
test-e2e:
name: Playwright Tests
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # mint OIDC token for Worker ingest
checks: write # post PR Check Run
defaults:
run:
working-directory: dashboard
Expand Down Expand Up @@ -63,8 +67,8 @@ jobs:
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: npx playwright install-deps chromium

- name: Run Playwright tests
run: npx playwright test
- name: Run Playwright tests with coverage
run: npm run test:e2e:coverage

- name: Upload Playwright report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand All @@ -74,6 +78,13 @@ jobs:
path: dashboard/playwright-report/
retention-days: 30

- name: Report coverage
uses: CoverageTracker/coverage-tracker/.github/actions/report@v0.3.0
with:
worker-url: https://demo.coveragetracker.dev
coverage-path: dashboard/coverage/lcov.info
category: frontend

backend-coverage:
name: Worker Coverage
runs-on: ubuntu-latest
Expand Down Expand Up @@ -107,3 +118,4 @@ jobs:
uses: CoverageTracker/coverage-tracker/.github/actions/report@v0.3.0
with:
worker-url: https://demo.coveragetracker.dev
category: backend
1 change: 1 addition & 0 deletions dashboard/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ build/
.dev.vars
playwright-report/
test-results/
.nyc_output/
Loading
Loading