style: format publish-workflow test for biome

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-10-06 03:53:42 +00:00
parent 5a406b16c3
commit 58823d7187
No known key found for this signature in database

View File

@ -89,9 +89,13 @@ describe("server image publish workflow", () => {
expect(publish.if).toBe( expect(publish.if).toBe(
"github.event_name != 'pull_request' && needs.changes.outputs.publish == 'true'", "github.event_name != 'pull_request' && needs.changes.outputs.publish == 'true'",
); );
expect(workflowText).toContain("cancel-in-progress: ${{ github.event_name == 'pull_request' }}"); expect(workflowText).toContain(
"cancel-in-progress: ${{ github.event_name == 'pull_request' }}",
);
expect(workflowText).toContain("publish-server-image-build-${{ github.ref }}"); expect(workflowText).toContain("publish-server-image-build-${{ github.ref }}");
expect(workflowText).toContain("publish-server-image-publish-${{ github.ref == 'refs/heads/main' && 'main' || github.ref }}"); expect(workflowText).toContain(
"publish-server-image-publish-${{ github.ref == 'refs/heads/main' && 'main' || github.ref }}",
);
expect(workflowText).toContain("push: false"); expect(workflowText).toContain("push: false");
for (const match of workflowText.matchAll(/uses:\s+([^\s#]+)/g)) { for (const match of workflowText.matchAll(/uses:\s+([^\s#]+)/g)) {
expect(match[1], match[1]).toMatch(/@[0-9a-f]{40}$/); expect(match[1], match[1]).toMatch(/@[0-9a-f]{40}$/);