ci: run pure bun test in workflows

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-06 18:45:33 +09:00
parent 41af547fc7
commit e2d73f482a
3 changed files with 6 additions and 7 deletions

View File

@@ -46,8 +46,8 @@ jobs:
env:
BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/napi"
- name: Run tests with isolation
run: bun run script/run-ci-tests.ts
- name: Run tests
run: bun test
typecheck:
runs-on: ubuntu-latest

View File

@@ -45,8 +45,8 @@ jobs:
env:
BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/napi"
- name: Run tests with isolation
run: bun run script/run-ci-tests.ts
- name: Run tests
run: bun test
typecheck:
runs-on: ubuntu-latest

View File

@@ -9,14 +9,13 @@ const workflowPaths = [
]
describe("test workflows", () => {
test("use bun test isolation for workflows", () => {
test("use pure bun test for workflows", () => {
for (const workflowPath of workflowPaths) {
// #given
const workflow = readFileSync(workflowPath, "utf8")
// #then - should use run-ci-tests.ts for mock isolation
expect(workflow).toContain("- name: Run tests")
expect(workflow).toContain("run-ci-tests.ts")
expect(workflow).toContain("run: bun test")
}
})
})