diff --git a/.gitea/workflows/validate.yml b/.gitea/workflows/validate.yml new file mode 100644 index 0000000..84a2a12 --- /dev/null +++ b/.gitea/workflows/validate.yml @@ -0,0 +1,26 @@ +name: Validate HTML site + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + 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