Skip to content

Commit

Permalink
chore: Update Codecov configuration to latest (#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Mar 19, 2024
1 parent 3da62fd commit cf045b4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

Expand All @@ -59,9 +59,11 @@ jobs:
run: npm run validate

- name: ⬆️ Upload coverage report
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
flags: ${{ matrix.react }}
token: ${{ secrets.CODECOV_TOKEN }}

release:
permissions:
Expand All @@ -76,10 +78,10 @@ jobs:
github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 14

Expand Down
20 changes: 20 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
coverage:
status:
project:
default:
# basic
target: 100%
threshold: 0%
flags:
- canary
- experimental
- latest
branches:
- main
- 12.x
if_ci_failed: success
if_not_found: failure
informational: false
only_pulls: false
github_checks:
annotations: true

0 comments on commit cf045b4

Please sign in to comment.