Skip to content

Commit 5ab8fb6

Browse files
committed
ci: add codecov coverage reporting
1 parent c8b4cc3 commit 5ab8fb6

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
name: CI
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [main]
67
paths:
78
- "src/**"
9+
- "scripts/**"
810
- "tests/**"
911
pull_request:
1012
branches: [main]
1113
paths:
1214
- "src/**"
15+
- "scripts/**"
1316
- "tests/**"
1417

1518
concurrency:
@@ -59,8 +62,13 @@ jobs:
5962
env:
6063
BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/cli"
6164

62-
- name: Run tests
63-
run: AGENT=1 bun test
65+
- name: Run tests with coverage
66+
run: AGENT=1 bun test --coverage --coverage-reporter=lcov
67+
68+
- name: Upload coverage reports to Codecov
69+
uses: codecov/codecov-action@v5
70+
with:
71+
token: ${{ secrets.CODECOV_TOKEN }}
6472

6573
build:
6674
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)