mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 22:06:49 +00:00
22 lines
811 B
TypeScript
22 lines
811 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
const WORKFLOW_PATH = ".github/workflows/sandbox-common-smoke.yml";
|
|
|
|
describe("sandbox common smoke workflow", () => {
|
|
const workflow = readFileSync(WORKFLOW_PATH, "utf8");
|
|
|
|
it("bounds Docker build and run smoke steps", () => {
|
|
expect(workflow).toContain(
|
|
"timeout --kill-after=30s 5m docker build -t openclaw-sandbox-smoke-base:bookworm-slim -",
|
|
);
|
|
expect(workflow).toContain(
|
|
"timeout --kill-after=30s 2m docker run --rm openclaw-sandbox-common-smoke:bookworm-slim",
|
|
);
|
|
expect(workflow).not.toMatch(/(^|\n)\s+docker build -t openclaw-sandbox-smoke-base/u);
|
|
expect(workflow).not.toContain(
|
|
"u=\"$(docker run --rm openclaw-sandbox-common-smoke:bookworm-slim",
|
|
);
|
|
});
|
|
});
|