diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 96cdaa3a3ea35271def0bb6dbb95a16c517107ca..ec5cc25c63db3a85c1445ee1f1e60d3d4ade9604 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,13 @@ stages: - test -cache: - key: ${CI_COMMIT_REF_SLUG} - paths: - - node_modules/ - - .npm/ - test: - image: cypress/browsers:node16.16.0-chrome107-ff107-edge + image: node:latest stage: test script: # install dependencies - npm ci # start the server in the background - - npm run start:ci & + - npm start # 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 + - npm test \ No newline at end of file diff --git a/cypress.json b/cypress.json index 85300af6f162340cace6a28eaeecc4b5056d4f9e..680907cdbcc3c423a0f33f4b00a565c78db9a522 100644 --- a/cypress.json +++ b/cypress.json @@ -1,4 +1,4 @@ { - "baseUrl": "http://localhost:3000", + "baseUrl": "http://localhost:8080", "testFiles": "**/*.feature" }