Skip to content

Add site specs, gate deploy on them, ping IndexNow post-deploy - #25

Merged
rickychilcott merged 4 commits into
mainfrom
specs-and-ci
Nov 23, 2026
Merged

rickychilcott merged 4 commits into
mainfrom
specs-and-ci

Conversation

@rickychilcott

@rickychilcott rickychilcott commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What

  • Specs in test/, using Bridgetown's Minitest harness (bridgetown/test + rack-test) against the built output/. 47 tests:
    • homepage: title/description, OG tags, nav → sections, products, contact
    • every page: metadata, canonical URL, one h1, unique title/description, image alt text, no broken internal links/assets, markdown twin
    • every row of redirects.csv produces a noindex meta-refresh page
    • CNAME, robots, sitemap (exactly the indexable pages), feed, IndexNow key file, llms.txt links, agent-skills digests, api-catalog
  • CI: rake test runs on the production build between "Build site" and "Upload artifact", so a failing spec blocks the deploy. Pull requests run build + specs only (no upload, deploy, or IndexNow), in their own concurrency group so they can't bump a queued deploy.
  • IndexNow moved from a build-time plugin to a step after deploy-pages. It only pings after a successful deploy. Same payload; continue-on-error so a failed ping doesn't mark the deploy red.
  • Bug fix: favicon.ico, apple-icon-precomposed.png and respond.min.js were relative paths that 404'd on every subpage. The link-check spec caught this.
  • Canonical links: no page had <link rel="canonical">. Added it in head.html, matching og:url.

Heads up

Bridgetown is updated 2.1.2 → 2.2.2 (latest; Gemfile now pins ~> 2.2). Gemfile.lock also has that update that was pending locally, plus the new test gems. Versions are at or above the recent Dependabot security bumps (rack 3.2.9, nokogiri 1.19.7, addressable 2.10.0).

Run locally

bundle exec bridgetown build && bundle exec rake test

This PR's own CI run is the first test of the PR-only path.

🤖 Generated with Claude Code

rickychilcott and others added 4 commits November 23, 2026 06:09
- Minitest specs via Bridgetown's test harness (bridgetown/test + rack-test)
  against the built output/: page metadata, broken internal links, redirects,
  sitemap/robots/feed, llms.txt, agent skills, api-catalog.
- CI runs the specs on the production build; a failure blocks upload/deploy.
  Pull requests run build + specs only, in their own concurrency group.
- Replace the build-time IndexNow plugin with a post-deploy workflow step, so
  pings only happen after a successful deploy.
- Fix favicon/apple-icon/respond.js paths that 404'd on subpages.
- Gemfile.lock: test gems plus pending Bridgetown 2.1.2 -> 2.2.2 update.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t, guard test-only require

- IndexNow URLs come from the freshly built sitemap via a build job output,
  not the live (possibly CDN-stale) sitemap; skip when empty; pipefail
- pages:write/id-token:write only on the deploy job; drop unused configure-pages
- Rakefile tolerates missing test gems so rake deploy works with BUNDLE_WITHOUT=test

Co-Authored-By: Claude Opus 5.5 <[email protected]>
GitHub Pages serves output/404.html for any missing URL, so no CDN config
needed. Replaces the always-passing local-server 404 spec with checks that
the page is branded, noindex, out of the sitemap, and uses only
root-relative/absolute URLs (it's served at arbitrary depths).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rickychilcott
rickychilcott merged commit ccbe220 into main Nov 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant