fix(ci): standalone timing out during build

This commit is contained in:
Elian Doran
2026-04-19 11:53:22 +03:00
parent 3a3f49e21a
commit c995c15eae
3 changed files with 15 additions and 2 deletions

View File

@@ -97,6 +97,9 @@ jobs:
os: ubuntu-24.04-arm
runs-on: ${{ matrix.os }}
name: Standalone E2E tests on ${{ matrix.name }}
env:
TRILIUM_DOCKER: 1
TRILIUM_PORT: 8082
steps:
- uses: actions/checkout@v6
with:
@@ -115,6 +118,15 @@ jobs:
- name: Install Playwright browsers
run: pnpm exec playwright install --with-deps
- name: Build standalone
run: pnpm --filter client-standalone build
- name: Start standalone preview server
run: |
cd apps/client-standalone
pnpm vite preview --port $TRILIUM_PORT &
sleep 5
- name: Standalone end-to-end tests
run: pnpm --filter client-standalone e2e

View File

@@ -10,7 +10,8 @@
"test": "vitest",
"start-prod": "pnpm build && pnpm vite preview --port 8888",
"coverage": "vitest --coverage",
"e2e": "pnpm build && playwright test"
"e2e": "playwright test",
"start-prod-no-dir": "pnpm build && pnpm vite preview --port ${TRILIUM_PORT:-8082}"
},
"dependencies": {
"@excalidraw/excalidraw": "0.18.0",

View File

@@ -8,7 +8,7 @@ export default createBaseConfig({
projectName: "standalone",
workers: 1,
webServer: !process.env.TRILIUM_DOCKER ? {
command: "pnpm vite preview --port " + port,
command: "pnpm start-prod-no-dir",
url: baseURL,
reuseExistingServer: !process.env.CI,
cwd: __dirname,