Skip to content

Commit 7c4211b

Browse files
committed
codecov: setup & badge
1 parent 8a79514 commit 7c4211b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/npm-build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@ jobs:
2323
cache: 'pnpm'
2424
- name: Install dependencies
2525
run: pnpm install
26-
- name: Run tests
27-
run: pnpm test
26+
- name: Run tests & coverage
27+
run: pnpm run coverage
28+
- name: Upload coverage reports to Codecov
29+
uses: codecov/codecov-action@v5
30+
with:
31+
token: ${{ secrets.CODECOV_TOKEN }}
32+
slug: bitsnaps/puter-cli
33+

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
<p align="center">
44
<img alt="test" src="https://github.com/bitsnaps/puter-cli/actions/workflows/npm-build.yml/badge.svg">
5+
<a href="https://codecov.io/github/bitsnaps/puter-cli" >
6+
<img src="https://codecov.io/github/bitsnaps/puter-cli/graph/badge.svg?token=TFPCdwdFxF"/>
7+
</a>
58
<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/bitsnaps/puter-cli">
69
</p>
710

0 commit comments

Comments
 (0)