From 70e731e0669a3a40e476821a57100d06ad738be4 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 15 Sep 2023 17:56:26 -0700 Subject: [PATCH] test(server): move env variables into playwright config (#4384) --- .github/workflows/build-server.yml | 3 --- tests/affine-cloud/playwright.config.ts | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-server.yml b/.github/workflows/build-server.yml index d46b600784..91e134360d 100644 --- a/.github/workflows/build-server.yml +++ b/.github/workflows/build-server.yml @@ -117,9 +117,6 @@ jobs: env: CARGO_TARGET_DIR: '${{ github.workspace }}/target' DATABASE_URL: postgresql://affine:affine@localhost:5432/affine - ENABLE_LOCAL_EMAIL: true - OAUTH_EMAIL_LOGIN: noreply@toeverything.info - OAUTH_EMAIL_PASSWORD: affine - name: Upload server test coverage results uses: codecov/codecov-action@v3 diff --git a/tests/affine-cloud/playwright.config.ts b/tests/affine-cloud/playwright.config.ts index f3733f99da..772dfecf37 100644 --- a/tests/affine-cloud/playwright.config.ts +++ b/tests/affine-cloud/playwright.config.ts @@ -53,6 +53,8 @@ const config: PlaywrightTestConfig = { ENABLE_LOCAL_EMAIL: process.env.ENABLE_LOCAL_EMAIL ?? 'true', NEXTAUTH_URL: 'http://localhost:8080', OAUTH_EMAIL_SENDER: 'noreply@toeverything.info', + OAUTH_EMAIL_LOGIN: 'noreply@toeverything.info', + OAUTH_EMAIL_PASSWORD: 'affine', }, }, ],