diff --git a/.github/actions/changes-filter/action.yaml b/.github/actions/changes-filter/action.yaml index b14ee5da62f..710626934c2 100644 --- a/.github/actions/changes-filter/action.yaml +++ b/.github/actions/changes-filter/action.yaml @@ -44,7 +44,7 @@ outputs: description: 'Shared deps, `apps/website/**`, or website e2e workflow support changed.' value: ${{ github.event_name != 'pull_request' || steps.filter.outputs.deps == 'true' || steps.filter.outputs.app_website == 'true' }} app-billing-web-changes: - description: 'Shared deps or `apps/billing-web/**` changed.' + description: 'Shared deps, `apps/billing-web/**`, or the billing-web unit workflow changed.' value: ${{ github.event_name != 'pull_request' || steps.filter.outputs.deps == 'true' || steps.filter.outputs.app_billing_web == 'true' }} app-frontend-changes: description: 'Shared deps or `src/**` changed.' @@ -78,6 +78,7 @@ runs: - 'scripts/cicd/check-website-e2e-result.sh' app_billing_web: - 'apps/billing-web/**' + - '.github/workflows/ci-billing-web-unit.yaml' app_frontend: - 'src/**' packages: diff --git a/.github/workflows/ci-billing-web-unit.yaml b/.github/workflows/ci-billing-web-unit.yaml index bcebf93838d..fa7c8c7dbf0 100644 --- a/.github/workflows/ci-billing-web-unit.yaml +++ b/.github/workflows/ci-billing-web-unit.yaml @@ -48,7 +48,7 @@ jobs: working-directory: ./apps/billing-web files: ./coverage/lcov.info disable_search: true - flags: billing-web + flags: billing-web-unit # Re-root LCOV paths to prevent collisions with root-app coverage. network_prefix: apps/billing-web/ token: ${{ secrets.CODECOV_TOKEN }} diff --git a/codecov.yml b/codecov.yml index 28b743d5a61..1215ded430e 100644 --- a/codecov.yml +++ b/codecov.yml @@ -16,6 +16,16 @@ coverage: - apps/website/src/** flag_coverage_not_uploaded_behavior: pass + billing-web: + target: auto + threshold: '1%' + informational: true + flags: + - billing-web-unit + paths: + - apps/billing-web/src/** + flag_coverage_not_uploaded_behavior: pass + patch: default: informational: true @@ -31,6 +41,17 @@ coverage: - apps/website/src/** flag_coverage_not_uploaded_behavior: pass + # Likewise for billing-web. + billing-web: + target: '80%' + threshold: '0%' + informational: true + flags: + - billing-web-unit + paths: + - apps/billing-web/src/** + flag_coverage_not_uploaded_behavior: pass + # Coverage is instrumented over src/** only (see `coverage.include` in # vite.config.mts), so build and developer tooling has no coverage data to # report. Without this, changing a file under tools/ counts every one of its @@ -61,7 +82,8 @@ flags: paths: - apps/website/src/** carryforward: false - billing-web: + # Likewise for billing-web. + billing-web-unit: paths: - apps/billing-web/src/** carryforward: false