File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 11name : CI
22
3- on :
4- push :
5- branches : [master]
6- pull_request :
7- branches : [master]
3+ on : ['push', 'pull_request']
84
95jobs :
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 :
@@ -24,14 +20,15 @@ jobs:
2420 key : lock-${{ github.sha }}
2521
2622 - name : create package-lock.json
27- run : npm i --package-lock-only
23+ run : npm i --package-lock-only --ignore-scripts
2824
2925 - name : hack for singe file
3026 run : |
3127 if [ ! -d "package-temp-dir" ]; then
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
4138
4239 - name : install
4340 if : steps.node_modules_cache_id.outputs.cache-hit != 'true'
44- run : npm i
41+ run : npm ci
4542
4643 lint :
4744 runs-on : ubuntu-latest
@@ -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
You can’t perform that action at this time.
0 commit comments