Skip to content

Commit 074b33d

Browse files
committed
ci: enable coverage reporting in test commands
1 parent 932c587 commit 074b33d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/cli"
4040

4141
- name: Run tests
42-
run: AGENT=1 bun test
42+
run: AGENT=1 bun test --coverage
4343

4444
typecheck:
4545
runs-on: ubuntu-latest

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build:types": "tsc --emitDeclarationOnly --declaration --noEmit false",
1717
"build:schema": "bun run scripts/build-schema.ts",
1818
"clean": "rm -rf dist",
19-
"check": "bun run lint && bun run typecheck && bun run knip && bun run sg:scan && AGENT=1 bun test",
19+
"check": "bun run lint && bun run typecheck && bun run knip && bun run sg:scan && AGENT=1 bun test --coverage",
2020
"lint": "biome check --write",
2121
"typecheck": "tsc --project tsconfig.typecheck.json",
2222
"knip": "knip --production",

0 commit comments

Comments
 (0)