This commit is contained in:
jadera
2025-12-10 20:43:27 +02:00
parent f8a711a869
commit b3eae06a5b
+9 -4
View File
@@ -67,14 +67,19 @@ build:
- .next/cache/ - .next/cache/
test:e2e: test:e2e:
image: # Use a Cypress image which has Node 20 + Chrome and runs as root (solves permission issues)
name: testcafe/testcafe:latest image: cypress/browsers:node-20.14.0-chrome-125.0.6422.141-1-ff-126.0
entrypoint: ["/bin/sh", "-c"]
needs: ["install", "build"] needs: ["install", "build"]
stage: test stage: test
script: script:
# - sudo chown -R user:user . #allow deletion of test files # No sudo needed if running as root.
# If permissions are still wrong, we CAN fix them because we are root.
# But usually, being root means we can overwrite/rm the files anyway.
# 1. Clean install to ensure native modules match this container's environment
- npm ci - npm ci
# 2. Run TestCafe (using the CI script for headless mode)
- npm run testcafe:ci - npm run testcafe:ci
artifacts: artifacts:
paths: paths: