Add .gitea/workflows/validate.yml
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:
parent
37f07ba8d5
commit
1719067030
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-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
|
Reference in a new issue