ci: adicionar instalacao do nodejs para o linter
This commit is contained in:
@@ -26,9 +26,14 @@ jobs:
|
|||||||
trivy image --severity HIGH,CRITICAL nginx:alpine
|
trivy image --severity HIGH,CRITICAL nginx:alpine
|
||||||
|
|
||||||
# 3. LINTING & QUALIDADE
|
# 3. LINTING & QUALIDADE
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
|
||||||
- name: HTML/CSS Linter
|
- name: HTML/CSS Linter
|
||||||
run: |
|
run: |
|
||||||
sudo npm install -g htmlhint stylelint stylelint-config-standard
|
npm install -g htmlhint stylelint stylelint-config-standard
|
||||||
htmlhint index.html
|
htmlhint index.html
|
||||||
# Adiciona validação de CSS se tiveres ficheiros .css
|
# Adiciona validação de CSS se tiveres ficheiros .css
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user