ci: adicionar instalacao do nodejs para o linter
This commit is contained in:
@@ -25,10 +25,15 @@ jobs:
|
|||||||
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
||||||
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