Repository navigation
feat: add reusable hugo-ci and a11y workflows - #4
Merged
Merged
Conversation
## What/Why Add a reusable `hugo-ci.yaml` that builds a Hugo site and scans it with pa11y-ci. It replaces the `build-site` and `a11y` jobs each site keeps in its own `ci.yaml`. Inputs cover the Hugo version, full-history checkout, turning a11y off, the pa11y config path, and the Node version, so repos outside meridth can use it too. ## Proof it works - actionlint and zizmor pass. Every action pin is verified against its release tag. - The steps match odp's current `ci.yaml` job for job. The difference: the site builds once with the local scan address, and `a11y` downloads that build instead of rebuilding. - Before release, meridth/odp runs this branch's commit through a draft PR, to prove the reusable version end to end. ## Risk + AI role Low. New workflow; nothing calls it yet. Claude Opus 5.5 wrote it. ## Review focus - The Hugo build steps are written inline rather than through a shared composite action, so no workflow in this repo has to pin its own repo by SHA. Deploy and promote will copy them in v1.2.0. Signed-off-by: jmeridth <jmeridth@gmail.com>
hugo-ci now only builds, with base-url and upload-artifact inputs. a11y.yaml serves an uploaded site and runs pa11y-ci, so it works for any static site. Signed-off-by: jmeridth <jmeridth@gmail.com>
Defaults to 4173. pa11y configs can read SITE_URL instead of hardcoding the address. Signed-off-by: jmeridth <jmeridth@gmail.com>
Matches the other shared workflows; ubuntu-latest moves on GitHub's schedule. Signed-off-by: jmeridth <jmeridth@gmail.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.
What/Why
Add two reusable workflows.
hugo-ci.yamlbuilds a Hugo site and can upload the output.a11y.yamlserves an uploaded static site and scans it with pa11y-ci. A site calls both from oneci.yaml, so it builds once and scans that build. The a11y workflow isn't Hugo-specific.a11y.yamlserves on a configurableport(default 4173) and exportsSITE_URLfor the pa11y config.mark-ready.yamlalso moves fromubuntu-latesttoubuntu-24.04, so every shared workflow uses the same pinned runner.Proof it works
build / build-sitepassed in 18s anda11y / pa11yin 1m32s.Risk + AI role
Low. New workflows; nothing depends on them until the v1.1.0 pin. Claude Opus 5.5 wrote them.
Review focus
pa11y-ciandservein their lockfile, and a pa11y config that scanshttp://localhost:4173/. The README spells this out.