From 08476083f30caf5681dfeffc3d956ababfdabe1e Mon Sep 17 00:00:00 2001 From: Graydogminer <78515166+Graydogminer@users.noreply.github.com> Date: Thu, 10 Nov 2022 14:13:35 -0800 Subject: [PATCH] Create html-linting.yml --- .github/workflows/html-linting.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/html-linting.yml diff --git a/.github/workflows/html-linting.yml b/.github/workflows/html-linting.yml new file mode 100644 index 0000000..97ec341 --- /dev/null +++ b/.github/workflows/html-linting.yml @@ -0,0 +1,25 @@ +name: HTML Linting + +on: + pull_request: + branches: + - main + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + # Single deploy job since we're just deploying + test: + runs-on: ubuntu-latest + steps: + - name: Install apt updates + run: sudo apt -y update; sudo apt -y upgrade; + - name: Install prerequisites + run: sudo apt install -y htmlhint npm; + - name: Checkout + uses: actions/checkout@v3 + - name: Install dependencies + run: sudo npm install + - name: Run tests + run: sudo npm run lintHTML