Skip to content
Snippets Groups Projects
Unverified Commit a67102d2 authored by Alexander Harkness's avatar Alexander Harkness
Browse files

Optimise remaining npm development installations

parent ab24bcab
No related branches found
No related tags found
No related merge requests found
...@@ -16,20 +16,32 @@ node_install: ...@@ -16,20 +16,32 @@ node_install:
paths: paths:
- node_modules - node_modules
dev_node_install:
stage: deps
script:
- npm ci
artifacts:
paths:
- node_modules
check_format: check_format:
stage: check stage: check
dependencies:
- dev_node_install
script: script:
- npm ci
- npx prettier --ignore-path .gitignore --check "**/*.{html,js,json,md}" - npx prettier --ignore-path .gitignore --check "**/*.{html,js,json,md}"
lint: lint:
stage: check stage: check
dependencies:
- dev_node_install
script: script:
- npm ci
- npx eslint --ignore-path .gitignore "**/*.js" - npx eslint --ignore-path .gitignore "**/*.js"
backend_build: backend_build:
stage: build stage: build
dependencies:
- node_install
script: script:
- npm run build - npm run build
artifacts: artifacts:
...@@ -38,12 +50,16 @@ backend_build: ...@@ -38,12 +50,16 @@ backend_build:
backend_test: backend_test:
stage: test stage: test
dependencies:
- dev_node_install
script: script:
- npm ci
- npm test - npm test
deploy: deploy:
stage: deploy stage: deploy
dependencies:
- node_install
- backend_build
only: only:
- master - master
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment