Skip to content

Commit c536c1f

Browse files
Layouwenafc163
andauthored
test: use codecov/codecov-action (#715)
Co-authored-by: afc163 <[email protected]>
1 parent 0ed0e7b commit c536c1f

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: CI
22

3-
on:
4-
push:
5-
branches: [master]
6-
pull_request:
7-
branches: [master]
3+
on: ['push', 'pull_request']
84

95
jobs:
106
setup:
117
runs-on: ubuntu-latest
128
steps:
139
- name: checkout
14-
uses: actions/checkout@master
10+
uses: actions/checkout@v4
1511

1612
- uses: actions/setup-node@v4
1713
with:
@@ -32,6 +28,7 @@ jobs:
3228
mkdir package-temp-dir
3329
fi
3430
cp package-lock.json package-temp-dir
31+
3532
- name: cache node_modules
3633
id: node_modules_cache_id
3734
uses: actions/cache@v4
@@ -110,9 +107,9 @@ jobs:
110107
- name: coverage
111108
run: npm test -- --coverage
112109

113-
- uses: codecov/codecov-action@v4
110+
- name: Upload coverage to Codecov
111+
uses: codecov/codecov-action@v4
114112
with:
115-
fail_ci_if_error: true # optional (default = false)
116-
token: ${{ secrets.CODECOV_TOKEN }} # required
113+
token: ${{ secrets.CODECOV_TOKEN }}
117114

118115
needs: setup

0 commit comments

Comments
 (0)