From 5a94f45531ed1f35bae9a3c97bbedb5afe2ffd12 Mon Sep 17 00:00:00 2001 From: Theo Ephraim Date: Tue, 14 Apr 2026 21:20:45 -0700 Subject: [PATCH 1/2] 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) --- .bumpy/empty-ci-setup.md | 2 ++ .github/workflows/ci.yaml | 2 +- package.json | 3 ++- packages/bumpy/bunfig.toml | 1 + packages/bumpy/package.json | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .bumpy/empty-ci-setup.md diff --git a/.bumpy/empty-ci-setup.md b/.bumpy/empty-ci-setup.md new file mode 100644 index 0000000..a845151 --- /dev/null +++ b/.bumpy/empty-ci-setup.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e2e876f..ad15492 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: - uses: oven-sh/setup-bun@v2 - run: bun install - run: bun run check - - run: bun test + - run: bun run test bumpy-check: runs-on: ubuntu-latest diff --git a/package.json b/package.json index 07ae8e7..f3dfc7e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "lint:fix": "oxlint --fix", "fmt": "oxfmt", "fmt:check": "oxfmt --check", - "check": "oxlint && oxfmt --check && bunx tsc -p packages/bumpy --noEmit", + "check": "oxlint && oxfmt --check && bun run --filter @varlock/bumpy check", + "test": "bun run --filter @varlock/bumpy test", "postinstall": "lefthook install" }, "devDependencies": { diff --git a/packages/bumpy/bunfig.toml b/packages/bumpy/bunfig.toml index e70b588..6e8d17b 100644 --- a/packages/bumpy/bunfig.toml +++ b/packages/bumpy/bunfig.toml @@ -1,5 +1,6 @@ # these global vars will be bundled at build time by tsdown # this just injects them for running `bun test` or running the ts code directly via bun + [define] "__BUMPY_VERSION__" = "'dev'" "__BUMPY_WEBSITE_URL__" = "'https://github.com/dmno-dev/bumpy'" diff --git a/packages/bumpy/package.json b/packages/bumpy/package.json index aaef197..d0e88ed 100644 --- a/packages/bumpy/package.json +++ b/packages/bumpy/package.json @@ -24,6 +24,7 @@ }, "scripts": { "build": "tsdown", + "check": "bun run tsc --noEmit", "test": "bun test" }, "devDependencies": { From 8cbf15493121d7c311ccf4f142e2629598ad0385 Mon Sep 17 00:00:00 2001 From: Theo Ephraim Date: Tue, 14 Apr 2026 21:44:05 -0700 Subject: [PATCH 2/2] Add varlock load step to CI before type checking The env.d.ts files are gitignored, so varlock needs to load and generate the typed env schema before tsc can type-check. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ad15492..86ffe33 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,7 +8,9 @@ jobs: - uses: actions/checkout@v6 - uses: oven-sh/setup-bun@v2 - run: bun install + - run: cd packages/bumpy && bunx varlock load # need ENV types for tsdown config file - run: bun run check + - run: git config --global user.name "CI" && git config --global user.email "ci@test" - run: bun run test bumpy-check: