add coverage report upload to github

This commit is contained in:
Jacob Overgaard
2022-08-09 16:53:13 +02:00
parent 84493beee3
commit 2c74227d11

View File

@@ -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