Skip to content

Commit b45e475

Browse files
author
Dias, Diego
committed
Rollback to simplified ArtiomTr jest-coverage-report-action
- Remove GitHub Pages deployment - Remove MishaKav/jest-coverage-comment - Let ArtiomTr action run tests and generate coverage itself - Simpler workflow with just inline tests + ArtiomTr coverage report
1 parent 5c265f2 commit b45e475

File tree

1 file changed

+5
-31
lines changed

1 file changed

+5
-31
lines changed

.github/workflows/test-coverage.yml

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -28,36 +28,10 @@ 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: npm run test:coverage
33-
34-
- name: Upload Coverage Reports
35-
uses: actions/upload-artifact@v4
31+
- name: Jest Coverage Report
32+
uses: ArtiomTr/jest-coverage-report-action@v2
3633
if: always()
3734
with:
38-
name: coverage-report
39-
path: coverage/jest-tests/
40-
41-
- name: Deploy Coverage Report to GitHub Pages
42-
uses: peaceiris/actions-gh-pages@v4
43-
if: always() && github.event_name == 'push'
44-
with:
45-
github_token: ${{ secrets.GITHUB_TOKEN }}
46-
publish_dir: ./coverage/jest-tests
47-
destination_dir: coverage/${{ github.ref_name }}
48-
49-
- name: Jest Coverage Comment
50-
uses: MishaKav/jest-coverage-comment@main
51-
if: always()
52-
with:
53-
coverage-summary-path: coverage/jest-tests/coverage-summary.json
54-
title: Jest Coverage Report
55-
badge-title: Coverage
56-
create-new-comment: false
57-
58-
- name: Coverage Report Link
59-
if: always() && github.event_name == 'push'
60-
run: |
61-
echo "## 🔗 Coverage Report Link" >> $GITHUB_STEP_SUMMARY
62-
echo "" >> $GITHUB_STEP_SUMMARY
63-
echo "📊 [View HTML Coverage Report](https://${{ github.repository_owner }}.github.io/Module-Structuring-and-Testing-Data/coverage/${{ github.ref_name }}/)" >> $GITHUB_STEP_SUMMARY
35+
github-token: ${{ secrets.GITHUB_TOKEN }}
36+
test-script: npm run test:coverage
37+
annotations: none

0 commit comments

Comments
 (0)