1 parent 6044c28 commit 03a1acbCopy full SHA for 03a1acb
2 files changed
.github/workflows/coverage.yml
.github/workflows/test.yml
@@ -49,6 +49,18 @@ jobs:
49
coverage/
50
!coverage/tmp/
51
52
+ - name: Generate coverage badge
53
+ if: matrix.node-version == '20.x' && github.ref == 'refs/heads/master'
54
+ run: npx coverage-badges-cli --source coverage/coverage-summary.json --output coverage/badges.svg
55
+
56
+ - name: Upload coverage badge
57
58
+ uses: actions/upload-artifact@v4
59
+ with:
60
+ name: coverage-badge
61
+ path: coverage/badges.svg
62
+ retention-days: 1
63
64
- name: Coverage Comment on PR
65
if: matrix.node-version == '20.x' && github.event_name == 'pull_request'
66
uses: romeovs/lcov-reporter-action@v0.3.1
0 commit comments