add coverage report upload to github
This commit is contained in:
@@ -33,3 +33,17 @@ jobs:
|
||||
- run: npm run build
|
||||
- run: sudo npx playwright install-deps
|
||||
- run: npm test
|
||||
- name: Report code coverage
|
||||
uses: zgosalvez/github-actions-report-lcov@v1
|
||||
with:
|
||||
coverage-files: coverage/lcov.*.info
|
||||
minimum-coverage: 90
|
||||
artifact-name: code-coverage-report
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
working-directory: apps/my-first-app
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: coverage-report
|
||||
path: coverage/lcov-report/
|
||||
retention-days: 30
|
||||
|
||||
Reference in New Issue
Block a user