ci: fix main.yml YAML (quote step names containing ': ') - #330
Merged
Conversation
…ainst it GitHub refused to parse .github/workflows/main.yml since #326 — two step names ("Tests (workspace: lib, ...)", "Static UX audit (gate policy: ...)") contained an unquoted ': ', which YAML reads as a nested mapping. Every push to main since then failed with "workflow file issue" and PRs showed no `spec gate` check at all (the file could not even be scheduled), so the breakage looked green. Quote both names and add `ci_workflow_scalars_with_colon_space_are_quoted` to tests/ci_policy.rs so an unquoted ': ' scalar in name/run/if/key lines fails `cargo test` locally before it reaches CI. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…rd was inert) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All
.github/workflows/main.ymlruns onmainsince #326 fail with "This run likely failed because of a workflow file issue": two step names contained an unquoted:(Tests (workspace: lib, …),Static UX audit (gate policy: …)), which YAML parses as a nested mapping (mapping values are not allowed here, line 137). Because GitHub could not parse the file, PRs simply had nospec gatecheck — the breakage was invisible rather than red. TheRobrix Build CI … cancelledentries are just concurrency cancellations.tests/ci_policy.rs: newci_workflow_scalars_with_colon_space_are_quoted— any single-linename:/run:/if:/key:scalar containing:must be quoted; mutation-checked (unquoting one name fails the test).🤖 Generated with Claude Code