mirror of
https://mirror.skon.top/github.com/code-yeongyu/oh-my-opencode
synced 2026-04-21 07:50:31 +08:00
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:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@@ -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
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user