Commit e6f09fe0 authored by Mathias Dahlstrøm's avatar Mathias Dahlstrøm
Browse files

Legger til gitlab CI yml fil

parent f9b266b8
Pipeline #136018 passed with stage
in 2 minutes and 1 second
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:
# i dependencies
- npm ci
# Kjør express-serveren i bakgrunnen (& er i bakgrunnen)
- npm start &
# Kjør testene
- npm test
artifacts:
when: always
paths:
- cypress/videos
- cypress/screenshots
expire_in: 1 day
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment