vithu
This commit is contained in:
+9
-4
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user