From 68a05ca0e64c5a438cf7924320903ac76b01a6c9 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 12 Sep 2022 08:27:08 +0100 Subject: [PATCH] Lint and build in same step The node modules are too large to persist between stages --- .gitlab-ci.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5492f7b..de85eaa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,5 @@ stages: - build - - test - deploy build: @@ -15,19 +14,13 @@ build: - npm ci --cache .npm --prefer-offline script: - npm run build + - npm run prettier artifacts: name: "$CI_JOB_ID" paths: - - ./node_modules - ./public expire_in: 30 mins -prettier: - image: node:slim - stage: test - script: - - npm run prettier - deploy: image: dokku/ci-docker-image:latest stage: deploy