ci: add lint stage to lint next.js app and helm chart
This commit is contained in:
parent
a976fcdce0
commit
e78c412637
1 changed files with 13 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Reference in a new issue