From 2a9976cfbbc51f808ef4545496dc22fb01004a7e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 19 Apr 2026 11:39:39 +0300 Subject: [PATCH] feat(ci): run e2e for standalone --- .github/workflows/playwright.yml | 41 +++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index caf1d5762c..e28c6f0a48 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -14,7 +14,7 @@ permissions: contents: read jobs: - e2e: + e2e-server: strategy: fail-fast: false matrix: @@ -85,3 +85,42 @@ jobs: - name: Kill the server if: always() run: pkill -f trilium || true + + e2e-standalone: + strategy: + fail-fast: false + matrix: + include: + - name: linux-x64 + os: ubuntu-22.04 + - name: linux-arm64 + os: ubuntu-24.04-arm + runs-on: ${{ matrix.os }} + name: Standalone E2E tests on ${{ matrix.name }} + steps: + - uses: actions/checkout@v6 + with: + filter: tree:0 + fetch-depth: 0 + + - uses: pnpm/action-setup@v5 + - uses: actions/setup-node@v6 + with: + node-version: 24 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Install Playwright browsers + run: pnpm exec playwright install --with-deps + + - name: Standalone end-to-end tests + run: pnpm --filter client-standalone e2e + + - name: Upload test report + if: failure() + uses: actions/upload-artifact@v7 + with: + name: standalone e2e report ${{ matrix.name }} + path: apps/client-standalone/test-output