diff --git a/.github/workflows/run-e2e.yml b/.github/workflows/run-e2e.yml index f9ee6739..4e261696 100644 --- a/.github/workflows/run-e2e.yml +++ b/.github/workflows/run-e2e.yml @@ -21,13 +21,13 @@ jobs: - name: Install dependencies run: pnpm install && npx playwright install --with-deps - - name: Make .env.test file - run: | - echo "${{ secrets.TEST_ENV_FILE }}" > .env.test - echo NEXT_PUBLIC_CI=true >> .env.test - echo NEXT_PUBLIC_CI=true >> ./examples/simple/.env.test - - name: Run tests run: pnpm test:e2e + before_script: + - echo "NEXT_PUBLIC_EPCC_CLIENT_ID=${E2E_NEXT_PUBLIC_EPCC_CLIENT_ID}" > ./examples/simple/.env.test + - echo "EPCC_CLIENT_SECRET=${E2E_EPCC_CLIENT_SECRET}" >> ./examples/simple/.env.test + - echo "NEXT_PUBLIC_EPCC_ENDPOINT_URL=${E2E_NEXT_PUBLIC_EPCC_ENDPOINT_URL}" >> ./examples/simple/.env.test + - echo "NEXT_PUBLIC_COOKIE_PREFIX_KEY=${E2E_NEXT_PUBLIC_COOKIE_PREFIX_KEY}" >> ./examples/simple/.env.test + - echo "SITE_NAME=${E2E_SITE_NAME}" >> ./examples/simple/.env.test env: BASE_URL: ${{ github.event.deployment_status.environment_url }} \ No newline at end of file