From a4ace3520e7355584a5924a8ab4d9e04df20eab1 Mon Sep 17 00:00:00 2001 From: MukundaKatta Date: Fri, 5 Jun 2026 14:14:14 -0500 Subject: [PATCH] chore: add HTML validation CI workflow Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ .htmlvalidate.json | 8 ++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .htmlvalidate.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7f781d8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +# Minimal, non-breaking CI for this static HTML site. +# Validates the HTML markup on every push and pull request. + +on: + push: + branches: ["main"] + pull_request: + +permissions: + contents: read + +jobs: + html-validate: + name: Validate HTML + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Validate HTML markup + run: npx --yes html-validate "**/*.html" diff --git a/.htmlvalidate.json b/.htmlvalidate.json new file mode 100644 index 0000000..c855428 --- /dev/null +++ b/.htmlvalidate.json @@ -0,0 +1,8 @@ +{ + "extends": ["html-validate:recommended"], + "rules": { + "void-style": "off", + "no-inline-style": "off", + "long-title": "off" + } +}