feat: use codecov flags (#6418)

This commit is contained in:
eddie 2023-04-24 12:44:41 -07:00 committed by GitHub
parent 4966ee56dd
commit 75b0320bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 7 deletions

@ -65,6 +65,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
verbose: true
flags: unit-tests
build:
runs-on: ubuntu-latest
@ -161,6 +162,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
verbose: true
flags: e2e-tests
# Included as a single job to check for cypress-test-matrix success, as a matrix cannot be checked.
cypress-tests:

@ -9,13 +9,17 @@ ignore:
- "**/constants/**/*"
- "constants/**/*"
coverage:
status:
project:
default:
flag_management:
default_rules:
statuses:
- type: project
target: auto
threshold: 1%
if_ci_failed: error
patch:
default:
- type: patch
target: 80%
individual_flags:
- name: e2e-tests
statuses:
- type: patch
target: 0%