File tree Expand file tree Collapse file tree 1 file changed +0
-42
lines changed Expand file tree Collapse file tree 1 file changed +0
-42
lines changed Original file line number Diff line number Diff line change @@ -177,45 +177,3 @@ jobs:
177177 - name : Lint code
178178 if : steps.list_env.outputs.eslint != ''
179179 run : npm run lint
180-
181- - name : Collect code coverage
182- if : steps.list_env.outputs.nyc != ''
183- run : |
184- if [[ -d ./coverage ]]; then
185- mv ./coverage "./${{ matrix.name }}"
186- mkdir ./coverage
187- mv "./${{ matrix.name }}" "./coverage/${{ matrix.name }}"
188- fi
189-
190- - name : Upload code coverage
191- uses : actions/upload-artifact@v2
192- if : steps.list_env.outputs.nyc != ''
193- with :
194- name : coverage
195- path : ./coverage
196- retention-days : 1
197-
198- coverage :
199- needs : test
200- runs-on : ubuntu-latest
201- steps :
202- - uses : actions/checkout@v2
203-
204- - name : Install lcov
205- shell : bash
206- run : sudo apt-get -y install lcov
207-
208- - name : Collect coverage reports
209- uses : actions/download-artifact@v2
210- with :
211- name : coverage
212- path : ./coverage
213-
214- - name : Merge coverage reports
215- shell : bash
216- run : find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./coverage/lcov.info
217-
218- - name : Upload coverage report
219- uses : coverallsapp/github-action@master
220- with :
221- github-token : ${{ secrets.github_token }}
You can’t perform that action at this time.
0 commit comments