fix(ci): adapt playwright config for docker

This commit is contained in:
Elian Doran 2025-05-15 17:24:24 +03:00
parent 9a825a76b5
commit 1d2c3fc7a7
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ jobs:
require-healthy: true require-healthy: true
- name: Run Playwright tests - 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 - uses: actions/upload-artifact@v4
if: ${{ !cancelled() }} if: ${{ !cancelled() }}
with: with:

View File

@ -22,12 +22,12 @@ export default defineConfig({
trace: 'on-first-retry', trace: 'on-first-retry',
}, },
/* Run your local dev server before starting the tests */ /* Run your local dev server before starting the tests */
webServer: { webServer: !process.env.TRILIUM_DOCKER ? {
command: 'pnpm server:start-prod', command: 'pnpm server:start-prod',
url: baseURL, url: baseURL,
reuseExistingServer: !process.env.CI, reuseExistingServer: !process.env.CI,
cwd: workspaceRoot cwd: workspaceRoot
}, } : undefined,
projects: [ projects: [
{ {
name: "chromium", name: "chromium",