ci: validate foundry.yaml on PRs via ailloy foundry temper - #5
Open
kriscoleman wants to merge 1 commit into
Open
kriscoleman wants to merge 1 commit into
kriscoleman wants to merge 1 commit into
Conversation
Adds a GitHub Actions workflow that installs the latest ailloy and runs `ailloy foundry temper foundry.yaml` whenever a PR touches the index (or the workflow itself), and on every push to main as a backstop. The temper command (added in nimble-giant/ailloy#163) checks schema, verifies every direct mold's source resolves on its remote, and recursively validates every nested foundry. Failures fail the check with the array index, mold name, and underlying cause — so contributor PRs surface broken sources before a maintainer needs to look.
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.
Summary
Adds a GitHub Actions workflow that runs
ailloy foundry temper foundry.yamlon every PR touching the index. Catches broken mold sources, schema regressions, and unreachable nested foundries before a maintainer needs to look.What it does
foundry.yamlor the workflow itself, pushes tomain(backstop), andworkflow_dispatch(manual re-run).ailloy foundry temper foundry.yaml.contents: readonly — no write scope, no token surface beyond a default checkout.What temper checks
(See nimble-giant/ailloy#163 for full detail.)
apiVersion,kind,name, every mold'sname/source, every nested foundry'ssource)git ls-remote, no clone)Findings include the array index, name, and underlying cause for each broken entry.
Why now
PR #4 (
kriscoleman/use-nested-replicated-foundry) just landed the first nested-foundry entry in this index. Adding CI here means future contributor PRs — whether they add a mold, bump a version, or contribute another nested foundry — get the same automated check.Test plan
foundry.yaml)workflow_dispatchis selectable from the Actions tab after merge