Skip to content

Commit 98b463a

Browse files
authored
ci: upload coverage to Codecov on push to main (#2838)
1 parent ac3fc1c commit 98b463a

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/ci-coverage.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Coverage
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches: [main]
9+
paths:
10+
- 'packages/superdoc/src/**'
11+
- 'packages/superdoc/vite.config.js'
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: coverage-${{ github.sha }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
coverage:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v6
23+
24+
- uses: pnpm/action-setup@v4
25+
26+
- uses: actions/setup-node@v6
27+
with:
28+
node-version-file: .nvmrc
29+
cache: pnpm
30+
31+
- run: pnpm install
32+
33+
- run: pnpm --filter @superdoc-dev/superdoc-yjs-collaboration build
34+
35+
- run: pnpm --filter superdoc exec vitest run --coverage
36+
37+
- uses: codecov/codecov-action@v5
38+
with:
39+
token: ${{ secrets.CODECOV_TOKEN }}
40+
files: packages/superdoc/coverage/lcov.info
41+
flags: superdoc

0 commit comments

Comments
 (0)