diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..96cdaa3a3ea35271def0bb6dbb95a16c517107ca --- /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