From e78c4126377b3c18ce362bfd4a4eeb2c2a18bc6d Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Wed, 5 Jul 2023 17:12:28 +0200 Subject: [PATCH] ci: add lint stage to lint next.js app and helm chart --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b65af1a..81a05aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,10 +2,23 @@ default: image: registry.mareshq.com/mareshq/ci-toolkit:latest stages: + - lint - build - deploy:dry-run - deploy +lint next.js: + stage: lint + image: node:18-alpine3.17 + script: + - npm ci --frozen-lockfile + - npm run lint + +lint helm: + stage: lint + script: + - helm lint ./charts/backoffice -f ./charts/backoffice/values.dummy.yaml --quiet + docker build: stage: build before_script: