# Needed to launch the image variables: USER_ID: "$(id -u)" GROUP_ID: "$(id -g)" stages: - test - build - docs before_script: - yarn install --frozen-lockfile --cache-folder .yarn - yarn ng --version cache: key: "${CI_COMMIT_REF_SLUG}" paths: - .yarn lint: stage: test image: node:alpine tags: [docker] script: - yarn lint allow_failure: true test: stage: test image: esanzgar/node-chromium tags: [docker] script: - yarn test:sr:chromium artifacts: paths: - coverage/ build: stage: build image: node:alpine tags: [docker] script: - yarn packagr artifacts: name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" paths: - dist-lib/ only: - master pages: stage: docs image: node:alpine tags: [docker] script: - yarn docs - mkdir public - cp -r docs/* public/ artifacts: paths: - public only: - master