Skip to content

Create deploy.yml

Create deploy.yml #2

Workflow file for this run

name: HTML & CSS Lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install linters
run: |
npm install -g htmlhint stylelint stylelint-config-standard
- name: Run HTMLHint
run: |
htmlhint "**/*.html"
- name: Run Stylelint
run: |
stylelint "**/*.css"