Commit 417903ec authored by Eduardo Sanz García's avatar Eduardo Sanz García
Browse files

chore: improve gitlab CI/CD

parent 4e909403
Pipeline #2726 passed with stages
in 6 minutes and 27 seconds
stages:
- prepare
- test
- build
# Needed to launch the image
variables:
USER_ID: "$(id -u)"
GROUP_ID: "$(id -g)"
prepare:
stage: prepare
stages:
- test
- build
before_script:
# - yarn install --frozen-lockfile --cache-folder .yarn
- yarn install --frozen-lockfile
- yarn ng --version
cache:
key: "${CI_COMMIT_REF_SLUG}"
paths:
- node_modules/
# - .yarn
lint:
stage: test
image: node:alpine
tags: [docker]
script:
- yarn
- yarn ng --version # Display version information
artifacts:
paths:
- node_modules/
expire_in: 1 hour
- yarn lint
allow_failure: true
test:
stage: test
......@@ -30,14 +36,6 @@ test:
paths:
- coverage/
lint:
stage: test
image: node:alpine
tags: [docker]
script:
- yarn lint
allow_failure: true
docs:
stage: test
image: node:alpine
......@@ -53,7 +51,7 @@ build:
image: node:alpine
tags: [docker]
script:
- yarn build
- yarn packagr
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
paths:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment