diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7103da86..86529a56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,3 +139,8 @@ jobs: - name: Test run: bun run test:all + + - name: Test CLI e2e + env: + CCS_E2E_SKIP_BUILD: '1' + run: bun run test:e2e diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml index cf9f59d7..50de0621 100644 --- a/.github/workflows/dev-release.yml +++ b/.github/workflows/dev-release.yml @@ -49,6 +49,11 @@ jobs: - name: Validate (typecheck + lint + format + tests) run: bun run validate + - name: Test CLI e2e + env: + CCS_E2E_SKIP_BUILD: '1' + run: bun run test:e2e + - name: Release id: release env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index adb7a3e1..466394ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,6 +45,11 @@ jobs: - name: Validate (typecheck + lint + format + tests) run: bun run validate + - name: Test CLI e2e + env: + CCS_E2E_SKIP_BUILD: '1' + run: bun run test:e2e + - name: Release id: release env: diff --git a/tests/e2e/proxy-command.e2e.test.ts b/tests/e2e/proxy-command.e2e.test.ts index ff86ad5a..0e10c90b 100644 --- a/tests/e2e/proxy-command.e2e.test.ts +++ b/tests/e2e/proxy-command.e2e.test.ts @@ -22,6 +22,10 @@ function runCli(args: string[], extraEnv: Record = {}) { } beforeAll(() => { + if (process.env.CCS_E2E_SKIP_BUILD === '1') { + expect(fs.existsSync(DIST_ENTRY)).toBe(true); + return; + } const result = spawnSync(process.execPath, ['run', 'build'], { encoding: 'utf8', env: process.env,