From 3caddea0c2e1eda300bec11199d2d6bcabcbdf91 Mon Sep 17 00:00:00 2001 From: Shayne Preston Date: Mon, 11 Nov 2024 14:55:32 -0500 Subject: [PATCH] inject env variables --- .github/workflows/e2e.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 34dad8c..42b3d3f 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -29,8 +29,17 @@ jobs: - name: Run E2E Tests shell: bash + env: + # Inject app secrets like API keys here from github secrets + ABORT_DELAY: 5000 + EXAMPLE_APP: Example App run: | if [ "${{ github.event_name }}" == "schedule" ]; then + # Normally would not be needed but we have no test environment in this template + sudo echo "127.0.0.1 local.example-test.com" | sudo tee -a /etc/hosts + pnpm run postinstall:setup-cert + # ---- + pnpm run test:e2e:test else sudo echo "127.0.0.1 local.example-test.com" | sudo tee -a /etc/hosts