test(server): move env variables into playwright config (#4384)
This commit is contained in:
3
.github/workflows/build-server.yml
vendored
3
.github/workflows/build-server.yml
vendored
@@ -117,9 +117,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
|
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
|
||||||
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
|
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
|
- name: Upload server test coverage results
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ const config: PlaywrightTestConfig = {
|
|||||||
ENABLE_LOCAL_EMAIL: process.env.ENABLE_LOCAL_EMAIL ?? 'true',
|
ENABLE_LOCAL_EMAIL: process.env.ENABLE_LOCAL_EMAIL ?? 'true',
|
||||||
NEXTAUTH_URL: 'http://localhost:8080',
|
NEXTAUTH_URL: 'http://localhost:8080',
|
||||||
OAUTH_EMAIL_SENDER: 'noreply@toeverything.info',
|
OAUTH_EMAIL_SENDER: 'noreply@toeverything.info',
|
||||||
|
OAUTH_EMAIL_LOGIN: 'noreply@toeverything.info',
|
||||||
|
OAUTH_EMAIL_PASSWORD: 'affine',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user