From 071463a17564eaace90bfee0c6fbfae415f1b7e2 Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 8 May 2026 10:26:53 +0100 Subject: [PATCH] ci: adicionar instalacao do nodejs para o linter --- .gitea/workflows/deploy.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ac98008..cc35513 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -25,10 +25,15 @@ jobs: 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 - # 3. LINTING & QUALIDADE + # 3. LINTING & QUALIDADE + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + - name: HTML/CSS Linter run: | - sudo npm install -g htmlhint stylelint stylelint-config-standard + npm install -g htmlhint stylelint stylelint-config-standard htmlhint index.html # Adiciona validação de CSS se tiveres ficheiros .css