Skip to content

Commit

Permalink
build: make test file for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
field123 committed Nov 19, 2023
1 parent bb36310 commit 4cb9462
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/run-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 4cb9462

Please sign in to comment.