From 100819f0bc9035cccd392a19a045ccd37bb9cf93 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Tue, 12 May 2026 12:46:31 +0900 Subject: [PATCH] ci: build plugin before running tests The dist-bundle regression tests in src/shared/dist-bundle-bun-globals.test.ts are guarded by `test.skipIf(!existsSync("dist/index.js"))` and dist/ is gitignored, so they silently skipped in CI which ran tests before the build step. Adding the build step earlier ensures the regression guard runs and a future raw `Bun.*` leak in the bundle fails CI. --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ea728771..693240673 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,9 @@ jobs: env: BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/napi" + - name: Build plugin + run: bun run build + - name: Run tests run: bun run script/run-ci-tests.ts