Skip to content

Commit f865f19

Browse files
author
Dias, Diego
committed
Fix ArtiomTr action to use proper Jest report format
- Run Jest with required flags: --coverage --ci --json --testLocationInResults --outputFile=report.json - Pass report.json to ArtiomTr action via coverage-file parameter - Matches the documented example from ArtiomTr/jest-coverage-report-action
1 parent dfeb4c7 commit f865f19

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/test-coverage.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ jobs:
2828
- name: Run Inline Assertion Tests & Verify Parity
2929
run: ./scripts/run-inline-tests.sh
3030

31+
- name: Run Jest Tests with Coverage
32+
run: npx jest --config=jest.config.jest-tests.js --coverage --ci --json --testLocationInResults --outputFile=report.json
33+
3134
- name: Jest Coverage Report
3235
uses: ArtiomTr/jest-coverage-report-action@v2
3336
if: always()
3437
with:
35-
github-token: ${{ secrets.GITHUB_TOKEN }}
36-
test-script: npm run test:coverage
37-
annotations: none
38+
coverage-file: ./report.json
39+
base-coverage-file: ./report.json

0 commit comments

Comments
 (0)