Skip to content
Snippets Groups Projects
Commit d873c240 authored by Lise Sporsheim Gundersen's avatar Lise Sporsheim Gundersen
Browse files

added gitlab ci

parent 4630e3d6
No related branches found
No related tags found
No related merge requests found
Pipeline #136135 passed
stages:
- test
variables:
npm_config_cache: "$CI_PROJECT_DIR/.npm"
CYPRESS_CACHE_FOLDER: "$CI_PROJECT_DIR/cache/Cypress"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm
- cache/Cypress
- node_modules
test:
image: cypress/base:10
stage: test
script:
# install dependencies
- npm ci
# Kjør express-serveren i bakgrunnen
- npm start &
# Kjør testene
- npm test
artifacts:
when: always
paths:
- cypress/videos
- cypress/screenshots
expire_in: 1 day
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment