mirror of
https://mirror.skon.top/github.com/code-yeongyu/oh-my-opencode
synced 2026-04-20 23:50:14 +08:00
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
22 lines
632 B
TypeScript
22 lines
632 B
TypeScript
/// <reference types="bun-types" />
|
|
|
|
import { describe, expect, test } from "bun:test"
|
|
import { readFileSync } from "node:fs"
|
|
|
|
const workflowPaths = [
|
|
new URL("../.github/workflows/ci.yml", import.meta.url),
|
|
new URL("../.github/workflows/publish.yml", import.meta.url),
|
|
]
|
|
|
|
describe("test workflows", () => {
|
|
test("use pure bun test for workflows", () => {
|
|
for (const workflowPath of workflowPaths) {
|
|
// #given
|
|
const workflow = readFileSync(workflowPath, "utf8")
|
|
|
|
expect(workflow).toContain("- name: Run tests")
|
|
expect(workflow).toMatch(/run: bun (test|run script\/run-ci-tests\.ts)/)
|
|
}
|
|
})
|
|
})
|