Skip to content

Add's Testing#30

Merged
NickLiffen merged 8 commits intomainfrom
ft/testing
Dec 22, 2025
Merged

Add's Testing#30
NickLiffen merged 8 commits intomainfrom
ft/testing

Conversation

@NickLiffen
Copy link
Copy Markdown
Owner

CI/CD Workflow Consolidation and Enhancement:

  • Added a new comprehensive workflow in .github/workflows/build.yml that handles build, type checking, testing with coverage, artifact uploads, Lighthouse CI, and automated PR comments for coverage and Lighthouse scores. This workflow replaces previous separate workflows and adds more detailed reporting and validation steps.
  • Removed the old CI workflow (.github/workflows/ci.yml) that previously handled only Lighthouse CI, consolidating its responsibilities into the new workflow.
  • Removed the CodeQL analysis workflow (.github/workflows/codeql-analysis.yml), streamlining CI/CD processes and possibly reducing redundancy or maintenance overhead.

Static Content Cleanup:

  • Deleted the static 404 error page (404.html).
  • Deleted the static blog article page articles/building-a-simple-website.html.

NickLiffen and others added 8 commits December 22, 2025 17:17
- Add Node.js build system with EJS templates
- Create reusable partials for head, sidebar, footer, skip-link, structured data
- Add article, index, pagination, and 404 page templates
- Create build.js script that generates all HTML files
- Add validate.js for comparing output against existing files
- Add new-article.js CLI for creating new articles quickly
- Convert all 8 existing articles to Markdown with YAML frontmatter
- Add GitHub Actions workflow for CI (build, validate, Lighthouse)
- Add netlify.toml for deployment configuration
- Support for draft articles (hidden in production)
- Support for YouTube embeds with proper CSP

New workflow: Create .md file → npm run build → deploy
Estimated time savings: 6 hours → 30 minutes
- Use full month names consistently (e.g., '4th January 2023')
- Use standard ISO dates for sitemap and RSS
- Simplify validation to check correctness, not byte-for-byte match
- Remove unused 'diff' dependency
- Consistent nickliffen.dev domain everywhere
- og:title uses full title (matches <title> tag - SEO best practice)
- Use absolute paths for images (/img/ instead of ../img/)
- Fix service worker to handle navigation redirects properly
- Bump service worker version to 7
- Fix domain consistency: Change all nickliffen.me to nickliffen.dev
  - 404.ejs og:image
  - review-ghas-code-scanning-enterprise.md image
  - humans.txt site URL

- Fix title consistency: 'Nick Liffen Blog' -> 'Nick Liffen's Blog'
  - review-ghas-code-scanning-enterprise.md title and description

- Fix image extension: innersourcing.md .jpg -> .png (matches actual file)

- Fix service worker (v8):
  - Add leading / to developer-evolution.html path
  - Add missing articles (why-advanced-security, leadership-principles)
  - Add missing pagination pages (3, 4)

- Fix validate.js: Remove duplicate validate().catch() call

- Fix lighthouserc.js: Change staticDistDir from './' to './dist'
@NickLiffen NickLiffen merged commit fd34159 into main Dec 22, 2025
1 check failed
@NickLiffen NickLiffen deleted the ft/testing branch December 22, 2025 19:33
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