Skip to content

Add CI with HTML validation, fix 22 html-validate findings, refresh Pages actions - #1

Merged
technothatch merged 1 commit into
mainfrom
chore/ci-html-hygiene
Oct 11, 2026
Merged

technothatch merged 1 commit into
mainfrom
chore/ci-html-hygiene

Conversation

@technothatch

Copy link
Copy Markdown
Owner

What

Adds CI to a site that had none, fixes everything it found, and refreshes the Pages deployment to current actions.

CI (.github/workflows/ci.yml, runs on every push/PR)

  • node --check app.js — syntax check
  • html-validate@11.16.2 index.html — HTML validation
  • required-assets check (index.html, styles.css, app.js, .nojekyll) so a rename can't silently break the deploy

HTML fixes (all behavior-preserving, 22 html-validate errors -> 0)

  • explicit type=button on buttons outside forms, explicit type=text on text inputs
  • search box wrapper changed from <label> to <div> (it contained two controls; the input already has aria-label)
  • removed redundant for attributes on labels that wrap their control
  • <!doctype html> -> <!DOCTYPE html>

Pages deployment refresh

  • actions/checkout@v4 -> v7, configure-pages@v5 -> v6, upload-pages-artifact@v3 -> v5, deploy-pages@v4 -> v5
  • include-hidden-files: true — upload-pages-artifact v4+ excludes dotfiles by default, which would have dropped .nojekyll from the published site

Hygiene

  • Dependabot (GitHub Actions, weekly), .editorconfig

Verification

node --check app.js     -> clean
html-validate index.html -> 0 problems (was 22)
asset check             -> all present

… actions

- CI workflow: node --check app.js, html-validate 11.16.2 on index.html,
  and a required-assets check (index.html, styles.css, app.js, .nojekyll)
- index.html: explicit type attributes on buttons/inputs, search box wrapper
  changed from label to div (multi-control label), removed redundant label
  for attributes, doctype normalized to uppercase
- Pages deploy: checkout@v7, configure-pages@v6,
  upload-pages-artifact@v5 (with include-hidden-files so .nojekyll ships),
  deploy-pages@v5
- Dependabot for GitHub Actions, .editorconfig
@technothatch
technothatch merged commit fab0c89 into main Oct 11, 2026
1 check passed
@technothatch
technothatch deleted the chore/ci-html-hygiene branch October 11, 2026 14:18
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.

2 participants