From 251a0641eb7471d38a517e2c78492c2e8431ba0e Mon Sep 17 00:00:00 2001 From: Jovana Petkovic <jovanape@stud.ntnu.no> Date: Tue, 9 May 2023 12:47:49 +0200 Subject: [PATCH] Add yaml config file --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..96cdaa3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +stages: + - test + +cache: + key: ${CI_COMMIT_REF_SLUG} + paths: + - node_modules/ + - .npm/ + +test: + image: cypress/browsers:node16.16.0-chrome107-ff107-edge + stage: test + script: + # install dependencies + - npm ci + # start the server in the background + - npm run start:ci & + # run Cypress tests + - npx cypress run --browser firefox + artifacts: + when: always + paths: + - cypress/videos/**/*.mp4 + - cypress/screenshots/**/*.png + expire_in: 1 day \ No newline at end of file -- GitLab