Skip to content
Snippets Groups Projects
Commit 30ed499c authored by Jakob Karevold Grønhaug's avatar Jakob Karevold Grønhaug
Browse files

Update .gitlab-ci.yml file

parent 2325b532
No related branches found
No related tags found
No related merge requests found
Pipeline #215991 failed
image: node:latest
stages: # List of stages for jobs, and their order of execution
- npm
stages:
- build
- test
......@@ -16,11 +15,6 @@ cache:
before_script:
- npm ci --cache .npm --prefer-offline
npm:
stage: npm
script:
- npm ci
build-job: # This job runs in the build stage, which runs first.
stage: build
script:
......@@ -29,11 +23,18 @@ build-job: # This job runs in the build stage, which runs first.
unit-test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
script:
- npm i
- npm run test:unit
e2e-test-job: # This job runs in the test stage.
e2e-test-ff-job: # This job runs in the test stage.
image: cypress/browsers:latest
stage: test # It only starts when the job in the build stage completes successfully.
script:
- npm run dev &
- npx cypress run --browser firefox
e2e-test-chrome-job: # This job runs in the test stage.
image: cypress/browsers:latest
stage: test # It only starts when the job in the build stage completes successfully.
script:
- npm i
- npm run test:e2e
- npm run dev &
- npx cypress run --browser chrome
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