From 6c72fc19787b013d1efeb32b7f843ee02175f241 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Thu, 31 Dec 2020 02:50:44 +0200 Subject: [PATCH] ENV for CI e2e test --- .gitlab-ci.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 24972ca..45bbe1f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,7 +55,7 @@ test:e2e: needs: ["install", "build"] stage: test script: - - npm run test:e2e + - NEXT_PUBLIC_API_URL=https://api.dev.sik.party/api npm run test:e2e publish:dev: stage: publish diff --git a/package.json b/package.json index a1e94e1..d26a68d 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "start": "next dev", "start-prod": "next start", "test": "npm run test:e2e:verbose", - "test:e2e": "npm-run-all -p -r NEXT_PUBLIC_API_URL=https://api.dev.sik.party/api start-prod test:e2e:testcafe", + "test:e2e": "npm-run-all -p -r start-prod test:e2e:testcafe", "test:e2e:verbose": "npm-run-all -p -r start-prod test:e2e:testcafe:verbose", "test:e2e:testcafe": "testcafe -S -s 'tests/testcafe/screenshots' --app-init-delay 2000 chrome:headless tests/testcafe", "test:e2e:testcafe:verbose": "testcafe -S -s 'tests/testcafe/screenshots' --app-init-delay 2000 chrome tests/testcafe"