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

Update .gitlab-ci.yml file

parent c9dce848
No related branches found
No related tags found
No related merge requests found
Pipeline #7203 failed
......@@ -2,8 +2,8 @@ image: node:16
stages:
- build
- deploy
- test
- deploy
install:
stage: build
......@@ -24,6 +24,13 @@ build:
- job: install
artifacts: true
lint:
stage: test
script:
- npm run lint
needs:
- job: install
artifacts: true
.cypress:
image: cypress/base:16
......@@ -35,29 +42,22 @@ build:
- 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
- npx cypress run
- npm run test:e2e
needs:
- job: build
artifacts: true
- job: install
artifacts: true
deploy:
stage: deploy
script:
- npm run dev
- npm run deploy -- --token $SURGE_TOKEN
rules:
- if: $CI_COMMIT_BRANCH == "master"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment