Skip to content
Snippets Groups Projects
Commit 956ccc07 authored by LEKHLAIKH Taha's avatar LEKHLAIKH Taha
Browse files

Update .gitlab-ci.yml file

parent 73bcdaca
No related branches found
No related tags found
No related merge requests found
Pipeline #7199 failed
......@@ -2,8 +2,8 @@ image: node:16
stages:
- build
- test
- deploy
- test
install:
stage: build
......@@ -24,13 +24,6 @@ build:
- job: install
artifacts: true
lint:
stage: test
script:
- npm run lint
needs:
- job: install
artifacts: true
.cypress:
image: cypress/base:16
......@@ -42,11 +35,19 @@ lint:
- cypress/screenshots/**/*.png
expire_in: 1 day
component_tests:
extends: .cypress
script:
- npx cypress install
needs:
- job: install
artifacts: true
e2e_tests:
extends: .cypress
script:
- npx cypress install
- npm run test:e2e
- npx cypress run
needs:
- job: build
artifacts: true
......@@ -56,6 +57,6 @@ e2e_tests:
deploy:
stage: deploy
script:
- npm run deploy -- --token $SURGE_TOKEN
rules:
- if: $CI_COMMIT_BRANCH == "master"
- npm run dev
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment