diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 36402e21..88451f5b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ stages: - report - - build - test + - build report: stage: report @@ -19,22 +19,22 @@ build: stage: build image: node:14.5.0 variables: - NODE_OPTIONS: "--max_old_space_size=2048" + NODE_OPTIONS: '--max_old_space_size=2048' + script: + - cd ./src + - npm ci + - npm run-script build + artifacts: + paths: + - ./src/dist + +test: + stage: test + image: weltn24/up-docker-node-chrome-headless + variables: + NODE_OPTIONS: '--max_old_space_size=2048' script: - cd ./src - npm ci - npm run-script lint - - npm run-script build - artifacts: - paths: - - dist - -test: - stage: test - image: node:14.5.0 - variables: - NODE_OPTIONS: "--max_old_space_size=2048" - script: - - cd ./src - - npm ci - npm run-script test-headless