Skip to content

Add CI for build, broken-link checks, and content validation#31

Merged
jacobra19 merged 4 commits into
masterfrom
cursor/ae85a6c9
May 19, 2026
Merged

Add CI for build, broken-link checks, and content validation#31
jacobra19 merged 4 commits into
masterfrom
cursor/ae85a6c9

Conversation

@jacobra19

Copy link
Copy Markdown
Owner

Summary

  • Adds a GitHub Actions CI workflow that runs on pushes to master and on pull requests.
  • Validates blog frontmatter (required fields and known authors) before building the Docusaurus site, which already fails on broken internal links via onBrokenLinks: 'throw'.
  • Adds Playwright smoke and visual regression tests against the production build (homepage + one representative blog post).

Closes #26

Test plan

  • CI workflow passes on this PR
  • yarn validate:content passes locally
  • yarn build passes locally
  • CI=1 yarn test:e2e passes locally after yarn build

Made with Cursor

GitHub Actions runs Docusaurus build (with broken-link checks), frontmatter validation, and e2e/visual regression on PRs and pushes to master.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented May 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yakov-dev Ready Ready Preview, Comment May 19, 2026 1:01pm

setup-node's yarn cache runs Yarn 1.x before Corepack is enabled; install Node first, enable Corepack, then cache node_modules.

Co-authored-by: Cursor <cursoragent@cursor.com>
Run visual regression on Desktop Chrome and Pixel 7, with per-project snapshot baselines and simplified CI e2e job.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jacobra19 jacobra19 marked this pull request as draft May 19, 2026 11:43
@jacobra19 jacobra19 marked this pull request as ready for review May 19, 2026 11:43
@jacobra19 jacobra19 requested a review from Copilot May 19, 2026 11:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds CI coverage for validating blog content, building the Docusaurus site, and running Playwright smoke/visual regression tests.

Changes:

  • Adds a GitHub Actions CI workflow for build/content validation and e2e/visual test jobs.
  • Adds a blog frontmatter validation script and package scripts.
  • Adds Playwright configuration, tests, dependencies, and generated-output ignores.

Reviewed changes

Copilot reviewed 5 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/ci.yml Defines build/content validation and Playwright CI jobs.
.gitignore Ignores Playwright-generated reports/results.
e2e/site.spec.ts Adds smoke and visual regression tests for homepage and a blog post.
package.json Adds validation/test scripts and Playwright/YAML dev dependencies.
playwright.config.ts Configures Playwright projects, snapshots, and Docusaurus static server.
scripts/validate-content.mjs Adds blog frontmatter validation logic.
yarn.lock Locks newly added dependencies.
Comments suppressed due to low confidence (1)

scripts/validate-content.mjs:101

  • This truthiness check lets tags: false (or other falsy non-array values) pass validation even though tags are required to be an array. Validate the type whenever the field is present, rather than only when the value is truthy.
  if (frontmatter.tags && !Array.isArray(frontmatter.tags)) {

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}
}

if (frontmatter.slug && typeof frontmatter.slug !== 'string') {
Switch from element screenshots of main to viewport screenshots so
baselines are not sensitive to page content height. Add font
stabilization, block service workers for gtag, and raise
maxDiffPixelRatio to 0.05 for cross-platform rendering tolerance.

Add workflow_dispatch workflow to regenerate snapshots on ubuntu-latest.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jacobra19 jacobra19 merged commit d3a690d into master May 19, 2026
4 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.

Add CI for build, broken-link checks, and content validation

2 participants