diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..8e8be239a4657dc2fca6b384491a7cf248647096 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,58 @@ +image: node:10 + +stages: + - install + - build + - quality + +install: + stage: install + script: + - npm install + artifacts: + name: "artifacts" + untracked: true + expire_in: 60 mins + paths: + - .npm/ + - node_modules/ + +build: + stage: build + script: + - CI=false npm run build + artifacts: + paths: + - build + expire_in: 60 mins + dependencies: + - install + +linting: + stage: quality + script: + - npm run lint + dependencies: + - install + +test:unit: + stage: quality + script: + - npm run test:coverage + dependencies: + - install + coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/ + +test:e2e: + stage: quality + image: cypress/browsers:chrome69 + dependencies: + - install + - build + script: + - npm run e2e:ci + artifacts: + paths: + - cypress/screenshots + - cypress/videos + expire_in: 1 day