File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
- on :
4
- push :
5
- branches : [master]
6
- pull_request :
7
- branches : [master]
3
+ on : ['push', 'pull_request']
8
4
9
5
jobs :
10
6
setup :
11
7
runs-on : ubuntu-latest
12
8
steps :
13
9
- name : checkout
14
- uses : actions/checkout@master
10
+ uses : actions/checkout@v4
15
11
16
12
- uses : actions/setup-node@v4
17
13
with :
32
28
mkdir package-temp-dir
33
29
fi
34
30
cp package-lock.json package-temp-dir
31
+
35
32
- name : cache node_modules
36
33
id : node_modules_cache_id
37
34
uses : actions/cache@v4
@@ -110,9 +107,9 @@ jobs:
110
107
- name : coverage
111
108
run : npm test -- --coverage
112
109
113
- - uses : codecov/codecov-action@v4
110
+ - name : Upload coverage to Codecov
111
+ uses : codecov/codecov-action@v4
114
112
with :
115
- fail_ci_if_error : true # optional (default = false)
116
- token : ${{ secrets.CODECOV_TOKEN }} # required
113
+ token : ${{ secrets.CODECOV_TOKEN }}
117
114
118
115
needs : setup
You can’t perform that action at this time.
0 commit comments