From 2c74227d11ad891c5307d2e66dcc2848553a5e0f Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Tue, 9 Aug 2022 16:53:13 +0200 Subject: [PATCH] add coverage report upload to github --- .../.github/workflows/build_test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/.github/workflows/build_test.yml b/src/Umbraco.Web.UI.Client/.github/workflows/build_test.yml index 23e2c23745..a68bf75be5 100644 --- a/src/Umbraco.Web.UI.Client/.github/workflows/build_test.yml +++ b/src/Umbraco.Web.UI.Client/.github/workflows/build_test.yml @@ -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