From 1719067030657f9583eccebd1b20e1e8085852e9 Mon Sep 17 00:00:00 2001 From: Stijn Bannink Date: Sun, 14 Apr 2024 19:19:27 +0000 Subject: [PATCH 1/2] Add .gitea/workflows/validate.yml --- .gitea/workflows/validate.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/validate.yml 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 From db63cef085fb9b8c4c472d8c189725016a088cbc Mon Sep 17 00:00:00 2001 From: Stijn Bannink Date: Sun, 14 Apr 2024 19:21:55 +0000 Subject: [PATCH 2/2] Update .gitea/workflows/validate.yml --- .gitea/workflows/validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/validate.yml b/.gitea/workflows/validate.yml index 84a2a12..dff90d0 100644 --- a/.gitea/workflows/validate.yml +++ b/.gitea/workflows/validate.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout code