Skip to content

Commit 9870ba7

Browse files
committed
chore(ci): code coverage with token
1 parent 2b35d46 commit 9870ba7

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ jobs:
3333
run: yarn test:coverage
3434

3535
- name: Upload coverage to Codecov
36-
uses: codecov/codecov-action@v3
36+
uses: codecov/codecov-action@v4
37+
with:
38+
fail_ci_if_error: true
39+
env:
40+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ jobs:
3737
run: yarn test:coverage
3838

3939
- name: Upload coverage to Codecov
40-
uses: codecov/codecov-action@v3
40+
uses: codecov/codecov-action@v4
41+
with:
42+
fail_ci_if_error: true
43+
env:
44+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4145

4246
- name: Publish NPM
4347
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ jobs:
3636

3737
- name: Upload coverage to Codecov
3838
uses: codecov/codecov-action@v4
39+
with:
40+
fail_ci_if_error: true
41+
verbose: true
42+
env:
43+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)