From 4cb94627d45199c4dffe9d574ccf90529cae925f Mon Sep 17 00:00:00 2001 From: Robert Field Date: Sun, 19 Nov 2023 11:13:53 +0000 Subject: [PATCH] build: make test file for e2e --- .github/workflows/run-e2e.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-e2e.yml b/.github/workflows/run-e2e.yml index 4e261696..b17cfcfd 100644 --- a/.github/workflows/run-e2e.yml +++ b/.github/workflows/run-e2e.yml @@ -21,13 +21,15 @@ jobs: - name: Install dependencies run: pnpm install && npx playwright install --with-deps + - name: Make .env.test file + run: | + 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 + - 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