mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-08-22 03:18:54 +08:00
16 lines
456 B
TypeScript
16 lines
456 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { describe, expect, test } from "bun:test";
|
|
|
|
describe("action metadata", () => {
|
|
test("should expose the conclusion output from the run step", () => {
|
|
const metadata = readFileSync(
|
|
new URL("../action.yml", import.meta.url),
|
|
"utf8",
|
|
);
|
|
|
|
expect(metadata).toMatch(
|
|
/^ conclusion:\n description: .+\n value: \$\{\{ steps\.run\.outputs\.conclusion \}\}$/m,
|
|
);
|
|
});
|
|
});
|