style: format publish-workflow test for biome
Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
parent
5a406b16c3
commit
58823d7187
@ -89,9 +89,13 @@ describe("server image publish workflow", () => {
|
||||
expect(publish.if).toBe(
|
||||
"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-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");
|
||||
for (const match of workflowText.matchAll(/uses:\s+([^\s#]+)/g)) {
|
||||
expect(match[1], match[1]).toMatch(/@[0-9a-f]{40}$/);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user