File tree Expand file tree Collapse file tree 3 files changed +8
-52
lines changed Expand file tree Collapse file tree 3 files changed +8
-52
lines changed Original file line number Diff line number Diff line change @@ -158,48 +158,4 @@ jobs:
158158 run : npm ci
159159
160160 - name : Run tests
161- run : npm run test -- --coverage --runInBand --no-cache
162-
163- - name : Cache coverage
164- id : coverage-cache
165- uses : actions/cache/save@v4
166- with :
167- path : coverage
168- key : coverage-${{ runner.os }}-${{hashFiles('coverage/lcov.info')}}
169-
170- coverage :
171- name : Coverage
172- runs-on : ubuntu-latest
173- needs : test
174- steps :
175- - name : Checkout
176- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
177- with :
178- fetch-depth : 0
179-
180- - name : Setup Node.js
181- uses : actions/setup-node@v4
182- with :
183- node-version : 18
184-
185- - name : Restore modules
186- id : npm-modules-cache
187- uses : actions/cache/restore@v4
188- with :
189- path : node_modules
190- key : npm-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
191-
192- - name : Install modules
193- if : steps.npm-modules-cache.outputs.cache-hit != 'true'
194- run : npm ci
195-
196- - name : Restore coverage
197- id : coverage-cache
198- uses : actions/cache/restore@v4
199- with :
200- path : coverage
201- key : coverage-${{ runner.os }}-${{hashFiles('coverage/lcov.info')}}
202- restore-keys : coverage-${{ runner.os }}-
203-
204- - name : Send coverage report
205- run : npx codecov
161+ run : npm run test -- --runInBand --no-cache
Original file line number Diff line number Diff line change 1-
21name : Release
32
43on :
@@ -31,19 +30,20 @@ jobs:
3130 npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
3231 npm-${{ runner.os }}-
3332
34- - name : Install modules
35- if : steps.npm-modules-cache.outputs.cache-hit != 'true'
36- run : npm ci
37-
3833 - name : Cache modules
3934 id : npm-modules-cache
4035 uses : actions/cache@v4
4136 with :
4237 path : node_modules
4338 key : npm-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
39+ restore-keys : |
4440 npm-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
4541 npm-modules-${{ runner.os }}-
4642
43+ - name : Install modules
44+ if : steps.npm-modules-cache.outputs.cache-hit != 'true'
45+ run : npm ci
46+
4747 - name : Release
4848 env :
4949 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments