fix: only collect E2E coverage on push to main

Coverage collection re-runs all Playwright tests with instrumentation,
taking ~50 minutes. This should only run on main for baselines, not on
every PR. The PR report already handles missing coverage gracefully.
This commit is contained in:
bymyself
2026-04-08 19:45:16 -07:00
parent d45ec89066
commit c35fd119f8

View File

@@ -4,9 +4,6 @@ on:
push:
branches: [main, core/*]
paths-ignore: ['**/*.md']
pull_request:
branches-ignore: [wip/*, draft/*, temp/*]
paths-ignore: ['**/*.md']
concurrency:
group: e2e-coverage-${{ github.ref }}
@@ -62,3 +59,12 @@ jobs:
path: coverage/playwright/
retention-days: 30
if-no-files-found: warn
- name: Upload E2E coverage to Codecov
if: always()
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
with:
files: coverage/playwright/coverage.lcov
flags: e2e
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false