mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
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:
12
.github/workflows/ci-tests-e2e-coverage.yaml
vendored
12
.github/workflows/ci-tests-e2e-coverage.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user