test(server): move env variables into playwright config (#4384)

This commit is contained in:
LongYinan
2023-09-15 17:56:26 -07:00
committed by GitHub
parent acecb4bf69
commit 70e731e066
2 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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',
},
},
],