Skip to content

Commit 5a94f45

Browse files
theoephraimclaude
andcommitted
Fix CI: delegate test/check scripts to workspace packages
Root test and check scripts now use `bun run --filter` to delegate to the package, and CI uses `bun run test` instead of bare `bun test` so the bunfig.toml defines are picked up correctly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7b59cb2 commit 5a94f45

5 files changed

Lines changed: 7 additions & 2 deletions

File tree

.bumpy/empty-ci-setup.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: oven-sh/setup-bun@v2
1010
- run: bun install
1111
- run: bun run check
12-
- run: bun test
12+
- run: bun run test
1313

1414
bumpy-check:
1515
runs-on: ubuntu-latest

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"lint:fix": "oxlint --fix",
1616
"fmt": "oxfmt",
1717
"fmt:check": "oxfmt --check",
18-
"check": "oxlint && oxfmt --check && bunx tsc -p packages/bumpy --noEmit",
18+
"check": "oxlint && oxfmt --check && bun run --filter @varlock/bumpy check",
19+
"test": "bun run --filter @varlock/bumpy test",
1920
"postinstall": "lefthook install"
2021
},
2122
"devDependencies": {

packages/bumpy/bunfig.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# these global vars will be bundled at build time by tsdown
22
# this just injects them for running `bun test` or running the ts code directly via bun
3+
34
[define]
45
"__BUMPY_VERSION__" = "'dev'"
56
"__BUMPY_WEBSITE_URL__" = "'https://github.com/dmno-dev/bumpy'"

packages/bumpy/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
},
2525
"scripts": {
2626
"build": "tsdown",
27+
"check": "bun run tsc --noEmit",
2728
"test": "bun test"
2829
},
2930
"devDependencies": {

0 commit comments

Comments
 (0)