name: Validate HTML site
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm install htmlhint --save-dev
- name: Check HTML syntax
run: npx htmlhint "**/*.html"
continue-on-error: true