Skip to content

feat: add reusable hugo-ci and a11y workflows - #4

Merged
jmeridth merged 5 commits into
mainfrom
feat/hugo-ci
Sep 26, 2026
Merged

jmeridth merged 5 commits into
mainfrom
feat/hugo-ci

Conversation

@jmeridth

@jmeridth jmeridth commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

What/Why

Add two reusable workflows. hugo-ci.yaml builds a Hugo site and can upload the output. a11y.yaml serves an uploaded static site and scans it with pa11y-ci. A site calls both from one ci.yaml, so it builds once and scans that build. The a11y workflow isn't Hugo-specific. a11y.yaml serves on a configurable port (default 4173) and exports SITE_URL for the pa11y config. mark-ready.yaml also moves from ubuntu-latest to ubuntu-24.04, so every shared workflow uses the same pinned runner.

Proof it works

  • actionlint and zizmor pass. Every action pin is verified against its release tag.
  • meridth/odp#40 ran this branch's commit end to end: build / build-site passed in 18s and a11y / pa11y in 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

  • 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.
  • Outside callers need pa11y-ci and serve in their lockfile, and a pa11y config that scans http://localhost:4173/. The README spells this out.

## 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>
@jmeridth jmeridth self-assigned this Sep 26, 2026
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>
@jmeridth jmeridth changed the title feat: add reusable hugo-ci workflow with pa11y feat: add reusable hugo-ci and a11y workflows Sep 26, 2026
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>
@jmeridth jmeridth added the mark-ready-when-ready Auto-mark this draft PR ready for review once checks pass label Sep 26, 2026
@github-actions
github-actions Bot marked this pull request as ready for review September 26, 2026 14:24
@github-actions github-actions Bot removed the mark-ready-when-ready Auto-mark this draft PR ready for review once checks pass label Sep 26, 2026
@github-actions github-actions Bot added the feature New feature or request label Sep 26, 2026
@jmeridth jmeridth added the release Create a release when this PR merges label Sep 26, 2026
@jmeridth
jmeridth merged commit 67a5540 into main Sep 26, 2026
4 checks passed
@jmeridth
jmeridth deleted the feat/hugo-ci branch September 26, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request release Create a release when this PR merges

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant