The cypress npm package is installed, but the Cypress binary is missing. #25652
Unanswered
sidarthakumar
asked this question in
CI setup
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
image: node:16
variables:
CYPRESS_CACHE_FOLDER: '$CI_PROJECT_DIR/cache/Cypress'
stages:
Installing Dependencies:
stage: Installing Dependencies
cache:
key: '$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR'
paths:
- node_modules/
- cache/Cypress
script:
- npm ci --legacy-peer-deps
End to End (e2e cypress) Tests:
stage: E2E(cypress) Tests
parallel: 5
rules:
- if: '$CI_COMMIT_BRANCH == "master"' #should never change.
image: cypress/browsers:node16.16.0-chrome105-ff99-edge
cache:
key: '$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR'
paths:
- node_modules/
- cache/Cypress
script:
- apt-get update
- apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4
libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- npm run e2e
artifacts:
when: always
paths:
- cypress/videos//*.mp4
- cypress/screenshots//*.png
expire_in: 1 day
Beta Was this translation helpful? Give feedback.
All reactions