Skip to content

Commit cf045b4

Browse files
authored
chore: Update Codecov configuration to latest (#1289)
1 parent 3da62fd commit cf045b4

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

Diff for: .github/workflows/validate.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- name: ⬇️ Checkout repo
37-
uses: actions/checkout@v2
37+
uses: actions/checkout@v4
3838

3939
- name: ⎔ Setup node
40-
uses: actions/setup-node@v2
40+
uses: actions/setup-node@v4
4141
with:
4242
node-version: ${{ matrix.node }}
4343

@@ -59,9 +59,11 @@ jobs:
5959
run: npm run validate
6060

6161
- name: ⬆️ Upload coverage report
62-
uses: codecov/codecov-action@v1
62+
uses: codecov/codecov-action@v4
6363
with:
64+
fail_ci_if_error: true
6465
flags: ${{ matrix.react }}
66+
token: ${{ secrets.CODECOV_TOKEN }}
6567

6668
release:
6769
permissions:
@@ -76,10 +78,10 @@ jobs:
7678
github.event_name == 'push' }}
7779
steps:
7880
- name: ⬇️ Checkout repo
79-
uses: actions/checkout@v2
81+
uses: actions/checkout@v4
8082

8183
- name: ⎔ Setup node
82-
uses: actions/setup-node@v2
84+
uses: actions/setup-node@v4
8385
with:
8486
node-version: 14
8587

Diff for: codecov.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
# basic
6+
target: 100%
7+
threshold: 0%
8+
flags:
9+
- canary
10+
- experimental
11+
- latest
12+
branches:
13+
- main
14+
- 12.x
15+
if_ci_failed: success
16+
if_not_found: failure
17+
informational: false
18+
only_pulls: false
19+
github_checks:
20+
annotations: true

0 commit comments

Comments
 (0)