Skip to content

Commit 295eb44

Browse files
Belco90Copilot
andauthored
ci: add workflow for coverage on main (#1021)
Co-authored-by: Copilot <[email protected]>
1 parent 4ab50a0 commit 295eb44

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/main-coverage.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Code Coverage (main)
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
7+
permissions:
8+
contents: read
9+
statuses: write
10+
11+
jobs:
12+
coverage:
13+
name: Code Coverage
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 3
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
23+
- name: Set up Node
24+
uses: actions/setup-node@v4
25+
with:
26+
cache: 'pnpm'
27+
node-version-file: '.nvmrc'
28+
29+
- name: Install dependencies
30+
run: pnpm install
31+
32+
- name: Run tests with coverage
33+
run: pnpm run test:ci
34+
35+
- name: Upload coverage report
36+
uses: codecov/codecov-action@v5
37+
with:
38+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)