Files
geovisio-website/.gitlab-ci.yml
Andreani Jean d20923fbbc wip
2023-05-11 15:30:51 +02:00

53 lines
1.0 KiB
YAML

stages:
- 'Install'
- 'Test'
- 'Deploy'
variables:
CYPRESS_CACHE_FOLDER: '$CI_PROJECT_DIR/cache/Cypress'
before_script:
## chmod is unfortunately currently mandatory : https://github.com/nodejs/docker-node/issues/661
- npm install -g yarn@1.22.19 && chmod +x /usr/local/lib/node_modules/yarn/bin/yarn.js
cache:
paths:
- node_modules
- cache/Cypress
- .yarn/
install:
stage: Install
image: node:18.13.0
script:
- yarn install
test:unit:
stage: Test
image: cypress/browsers:node-18.16.0-chrome-113.0.5672.92-1-ff-113.0-edge-113.0.1774.35-1
script:
- yarn test:unit
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
test:e2e:
stage: Test
image: node:18.13.0
script:
- ls node_modules/.bin/cypress
- ./node_modules/.bin/cypress install
- yarn runHeadless
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
deploy:
stage: Deploy
image: node:18.13.0
cache:
paths:
- node_modules
variables:
CI: 1
script:
- yarn install
- yarn upgrade geovisio@develop
- yarn build