Merge remote-tracking branch 'origin/main'
Some checks are pending
Validate HTML site / build (push) Waiting to run
Some checks are pending
Validate HTML site / build (push) Waiting to run
This commit is contained in:
commit
d49f3dec2d
1 changed files with 26 additions and 0 deletions
26
.gitea/workflows/validate.yml
Normal file
26
.gitea/workflows/validate.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
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
|
Reference in a new issue