From 02b198cea01d565117db34cc262622026ae11389 Mon Sep 17 00:00:00 2001 From: Florian Zia Date: Wed, 25 Sep 2024 16:37:38 +0200 Subject: [PATCH] fix: Consolidate env variables in E2E test workflows --- .github/workflows/e2e_pr_full.yml | 4 ++++ .github/workflows/e2e_pr_smoke.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/e2e_pr_full.yml b/.github/workflows/e2e_pr_full.yml index 493bfa8ba6e..e1e074f7a2e 100644 --- a/.github/workflows/e2e_pr_full.yml +++ b/.github/workflows/e2e_pr_full.yml @@ -38,6 +38,8 @@ jobs: run: npm ci - name: Setting up postgres run: npm run db:migrate + env: + DATABASE_URL: postgres://postgres:postgres@localhost:5432/blurts - name: Store Playwright's Version run: | # Get the current Playwright version listed in package.json @@ -73,6 +75,7 @@ jobs: OAUTH_ACCOUNT_URI: ${{ secrets.OAUTH_ACCOUNT_URI }} ONEREP_API_KEY: ${{ secrets.ONEREP_API_KEY }} NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }} + NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }} HIBP_KANON_API_TOKEN: ${{ secrets.HIBP_KANON_API_TOKEN }} HIBP_API_TOKEN: ${{ secrets.HIBP_API_TOKEN }} HIBP_KANON_API_ROOT: "http://localhost:6060/api/mock/hibp" @@ -80,6 +83,7 @@ jobs: PREMIUM_PRODUCT_ID: ${{ secrets.STAGE_PREMIUM_PRODUCT_ID }} PREMIUM_PLAN_ID_MONTHLY_US: ${{ secrets.STAGE_PREMIUM_PLAN_ID_MONTHLY_US }} PREMIUM_PLAN_ID_YEARLY_US: ${{ secrets.STAGE_PREMIUM_PLAN_ID_YEARLY_US }} + REDIS_URL: "redis://redis.mock" - uses: actions/upload-artifact@v4 if: always() with: diff --git a/.github/workflows/e2e_pr_smoke.yml b/.github/workflows/e2e_pr_smoke.yml index 342c9fb6449..f85eb9cbfe8 100644 --- a/.github/workflows/e2e_pr_smoke.yml +++ b/.github/workflows/e2e_pr_smoke.yml @@ -38,6 +38,8 @@ jobs: run: npm ci - name: Setting up postgres run: npm run db:migrate + env: + DATABASE_URL: postgres://postgres:postgres@localhost:5432/blurts - name: Store Playwright's Version run: | # Get the current Playwright version listed in package.json @@ -73,10 +75,12 @@ jobs: OAUTH_ACCOUNT_URI: ${{ secrets.OAUTH_ACCOUNT_URI }} ONEREP_API_KEY: ${{ secrets.ONEREP_API_KEY }} NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }} + NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }} HIBP_KANON_API_TOKEN: ${{ secrets.HIBP_KANON_API_TOKEN }} HIBP_API_TOKEN: ${{ secrets.HIBP_API_TOKEN }} HIBP_KANON_API_ROOT: "http://localhost:6060/api/mock/hibp" ONEREP_API_BASE: "http://localhost:6060/api/mock/onerep/" + REDIS_URL: "redis://redis.mock" - uses: actions/upload-artifact@v4 if: always() with: