Skip to content

Build your personal knowledge base with Trilium Notes

fix(ci): adapt playwright config for docker

Elian Doran1d2c3fc7a78a
diff --git a/.github/workflows/main-docker.yml b/.github/workflows/main-docker.yml
index f5e7f6a9a7..f752fadef3 100644
--- a/.github/workflows/main-docker.yml
+++ b/.github/workflows/main-docker.yml
@@ -82,7 +82,7 @@ jobs:
require-healthy: true
- name: Run Playwright tests
- run: TRILIUM_DOCKER=1 npx playwright test
+ run: TRILIUM_DOCKER=1 TRILIUM_PORT=8082 npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
diff --git a/apps/server-e2e/playwright.config.ts b/apps/server-e2e/playwright.config.ts
index 47a21bf819..43abab3190 100644
--- a/apps/server-e2e/playwright.config.ts
+++ b/apps/server-e2e/playwright.config.ts
@@ -22,12 +22,12 @@ export default defineConfig({
trace: 'on-first-retry',
},
/* Run your local dev server before starting the tests */
- webServer: {
+ webServer: !process.env.TRILIUM_DOCKER ? {
command: 'pnpm server:start-prod',
url: baseURL,
reuseExistingServer: !process.env.CI,
cwd: workspaceRoot
- },
+ } : undefined,
projects: [
{
name: "chromium",