Skip to content

feat: add sitemap parity check workflow and script#365

Merged
Jexsie merged 5 commits into
mainfrom
sitemap-check
Jul 11, 2026
Merged

feat: add sitemap parity check workflow and script#365
Jexsie merged 5 commits into
mainfrom
sitemap-check

Conversation

@Jexsie

@Jexsie Jexsie commented Jul 11, 2026

Copy link
Copy Markdown
Member

Decription

Introduces a new automated workflow to ensure that all URLs listed in the production sitemap remain reachable in preview deployments, preventing accidental removals of important pages. It adds a GitHub Actions workflow that waits for a Netlify deployment to complete, then runs a new Node.js script to check sitemap parity between production and preview environments.

Sitemap parity check automation:

  • Added .github/workflows/sitemap-parity.yml to run on pull requests and pushes to main. This workflow waits for a successful Netlify deployment, then verifies that every URL in the production sitemap is reachable on the preview deployment. If any URL is unreachable, the check fails and blocks the merge.
  • Introduced scripts/check-sitemap-parity.mjs, a Node.js script that:
    • Downloads and parses the production and preview sitemaps.
    • Checks that all production URLs are reachable on the preview deployment, with support for concurrency, retries, and timeouts.
    • Reports any missing or broken URLs, exiting with a nonzero status if any are found.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 📝 Documentation update
  • 🎨 Style/formatting
  • ♻️ Refactor
  • 🔧 Configuration
  • ⚡ Performance
  • 🧪 Tests
  • 🔐 Security

Changes Made

  • Change 1
  • Change 2
  • Change 3

How to Test

  1. Step 1
  2. Step 2
  3. Verify the expected behavior

Checklist

  • Code follows project style guidelines
  • Self-review conducted
  • Comments added for complex logic
  • Documentation updated (if needed)
  • No new warnings generated
  • Tests added/updated (if applicable)
  • All tests passing locally

Signed-off-by: Jessie Ssebuliba <jessiessebuliba@gmail.com>
@netlify

netlify Bot commented Jul 11, 2026

Copy link
Copy Markdown

Deploy Preview for open-elements ready!

Name Link
🔨 Latest commit 292e666
🔍 Latest deploy log https://app.netlify.com/projects/open-elements/deploys/6a522d994994330008fb13e7
😎 Deploy Preview https://deploy-preview-365--open-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 67
Accessibility: 98
Best Practices: 92
SEO: 100
PWA: 60
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Jexsie added 3 commits July 11, 2026 13:26
Signed-off-by: Jessie Ssebuliba <jessiessebuliba@gmail.com>
Signed-off-by: Jessie Ssebuliba <jessiessebuliba@gmail.com>
Signed-off-by: Jessie Ssebuliba <jessiessebuliba@gmail.com>
Signed-off-by: Jessie Ssebuliba <jessiessebuliba@gmail.com>

@danielmarv danielmarv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good

@Jexsie Jexsie merged commit 8b583a4 into main Jul 11, 2026
13 checks passed
@Jexsie Jexsie deleted the sitemap-check branch July 11, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants