diff --git a/.github/workflows/ci-testing.yml b/.github/workflows/ci-testing.yml index 59a52d0..0043ca3 100644 --- a/.github/workflows/ci-testing.yml +++ b/.github/workflows/ci-testing.yml @@ -38,4 +38,10 @@ 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.1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + update-comment: true 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