Skip to content

Commit a5bd008

Browse files
authoredAug 13, 2024
test: use codecov/codecov-action (#475)
1 parent 5df95ba commit a5bd008

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎.github/workflows/react-component-ci.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
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:
@@ -109,6 +105,11 @@ jobs:
109105
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
110106

111107
- name: coverage
112-
run: npm test -- --coverage && bash <(curl -s https://codecov.io/bash)
108+
run: npm test -- --coverage
109+
110+
- name: Upload coverage to Codecov
111+
uses: codecov/codecov-action@v4
112+
with:
113+
token: ${{ secrets.CODECOV_TOKEN }}
113114

114115
needs: setup

0 commit comments

Comments
 (0)