Skip to content

Commit 79d8f21

Browse files
Create html-css-lint.yml
1 parent a69542f commit 79d8f21

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: HTML & CSS Lint
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: "18"
21+
22+
- name: Install linters
23+
run: |
24+
npm install -g htmlhint stylelint stylelint-config-standard
25+
26+
- name: Run HTMLHint
27+
run: |
28+
htmlhint "**/*.html"
29+
30+
- name: Run Stylelint
31+
run: |
32+
stylelint "**/*.css"

0 commit comments

Comments
 (0)