Skip to content
Snippets Groups Projects
Commit 24ba9a17 authored by thijsheijden's avatar thijsheijden
Browse files

Added basic NX gitlab CI config

parents
No related branches found
No related tags found
No related merge requests found
image: node:16-alpine
stages:
- setup
- test
install-dependencies:
stage: setup
interruptible: true
only:
- main
- merge_requests
cache:
key:
files:
- yarn.lock
paths:
- node_modules
- .yarn
script:
- yarn install --pure-lockfile --cache-folder .yarn
artifacts:
paths:
- node_modules
.distributed:
interruptible: true
only:
- main
- merge_requests
needs:
- install-dependencies
artifacts:
paths:
- node_modules/.cache/nx
build:
stage: test
extends: .distributed
script:
- yarn nx affected --base=HEAD~1 --target=build --parallel --max-parallel=3
test:
stage: test
extends: .distributed
script:
- yarn nx affected --base=HEAD~1 --target=test --parallel --max-parallel=2
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