Skip to content

Commit b98d1cc

Browse files
authored
Add GH Actions Workflow for Code Coverage Reporting (#272)
## Ticket Resolves #106 ## Changes added GH Actions workflow that uses [an existing Marketplace script](https://github.com/marketplace/actions/jest-coverage-report) to provide Jest code coverage reports on PRs
1 parent 799a2ca commit b98d1cc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci-app.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ jobs:
3535
cache-dependency-path: ${{ env.LOCKFILE_PATH }}
3636
cache: ${{ env.PACKAGE_MANAGER }}
3737
- run: npm ci
38-
- run: npm run test
38+
- run: npm run test -- --testLocationInResults --json --outputFile=coverage/report.json
39+
- uses: ArtiomTr/jest-coverage-report-action@v2
40+
with:
41+
coverage-file: coverage/report.json
42+
test-script: npm test
43+
working-directory: app
44+
# base-coverage-file: report.json
3945

4046
lint:
4147
name: Lint

0 commit comments

Comments
 (0)