Skip to content
Snippets Groups Projects
Commit 7936ac1e authored by MUNIER Florian's avatar MUNIER Florian
Browse files

[add] gitlab-cy_file

parent 56ea610d
No related branches found
No related tags found
No related merge requests found
Pipeline #5786 passed
image: node:16
stages:
- build
- test
- deploy
install:
stage: build
script:
- npm ci
artifacts:
paths:
- node_modules
build:
stage: build
script:
- npm run build
artifacts:
paths:
- dist
needs:
- job: install
artifacts: true
lint:
stage: test
script:
- npm run lint
needs:
- job: install
artifacts: true
.cypress:
image: cypress/base:16
stage: test
artifacts:
when: always
paths:
- cypress/videos/**/*.mp4
- cypress/screenshots/**/*.png
expire_in: 1 day
e2e_tests:
extends: .cypress
script:
- npx cypress install
- npm run test:e2e
needs:
- job: build
artifacts: true
- job: install
artifacts: true
deploy:
stage: deploy
script:
- npm run deploy -- --token $SURGE_TOKEN
rules:
- if: $CI_COMMIT_BRANCH == "master"
......@@ -10,6 +10,7 @@
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' :4173 'cypress open --e2e'",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"deploy": "surge dist/ my_calculator.surge.sh",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment