1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-11-16 20:49:06 +00:00

Lint and build in same step

The node modules are too large to persist between stages
This commit is contained in:
Jake Howard 2022-09-12 08:27:08 +01:00
parent 2221a14f7a
commit 68a05ca0e6
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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