From b9d79e53276a56716ae52c46e9a6aa55f2227e8c Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Sun, 28 Nov 2021 17:32:23 +0100 Subject: [PATCH 1/2] Provide and upload coverage report --- .github/workflows/ci-testing.yml | 7 ++++++- .gitignore | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-testing.yml b/.github/workflows/ci-testing.yml index 59a52d0..bb5e849 100644 --- a/.github/workflows/ci-testing.yml +++ b/.github/workflows/ci-testing.yml @@ -38,4 +38,9 @@ jobs: run: yarn install --frozen-lockfile - name: Unit Test - run: yarn run test:unit + run: yarn run test:unit --coverage --collectCoverageOnlyFrom ./src/** + + - name: Report coverage + uses: vebr/jest-lcov-reporter@v0.2.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index c2b66ff..fce4331 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .DS_Store node_modules +coverage # local env files .env.local From dcbca59bf3fb217b641353857306e6cd4b5059bf Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Sun, 28 Nov 2021 17:41:59 +0100 Subject: [PATCH 2/2] Update comment Re-update comment as due to test matrix of node versions, 3 identical comments would be fired. --- .github/workflows/ci-testing.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-testing.yml b/.github/workflows/ci-testing.yml index bb5e849..0043ca3 100644 --- a/.github/workflows/ci-testing.yml +++ b/.github/workflows/ci-testing.yml @@ -41,6 +41,7 @@ jobs: run: yarn run test:unit --coverage --collectCoverageOnlyFrom ./src/** - name: Report coverage - uses: vebr/jest-lcov-reporter@v0.2.0 + uses: vebr/jest-lcov-reporter@v0.2.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} + update-comment: true