Skip to content

Commit 03a1acb

Browse files
committed
fix: github actions
1 parent 6044c28 commit 03a1acb

2 files changed

Lines changed: 12 additions & 43 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ jobs:
4949
coverage/
5050
!coverage/tmp/
5151
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+
if: matrix.node-version == '20.x' && github.ref == 'refs/heads/master'
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: coverage-badge
61+
path: coverage/badges.svg
62+
retention-days: 1
63+
5264
- name: Coverage Comment on PR
5365
if: matrix.node-version == '20.x' && github.event_name == 'pull_request'
5466
uses: romeovs/lcov-reporter-action@v0.3.1

0 commit comments

Comments
 (0)