mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 04:42:28 +08:00
fix(ci): adapt playwright config for docker
This commit is contained in:
parent
9a825a76b5
commit
1d2c3fc7a7
2 changed files with 3 additions and 3 deletions
2
.github/workflows/main-docker.yml
vendored
2
.github/workflows/main-docker.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue