Skip to content

Build your personal knowledge base with Trilium Notes

fix(ci): remove duplicate pnpm cache setup in server E2E job

Elian Dorancef5b219d1f1
diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml
index 90e593d47a..94659f878e 100644
--- a/.github/workflows/playwright.yml
+++ b/.github/workflows/playwright.yml
@@ -68,24 +68,20 @@ jobs:
filter: tree:0
fetch-depth: 0
- - uses: pnpm/action-setup@v6
- - 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
-
+ # The build-server composite already sets up pnpm, Node (with the pnpm
+ # cache) and installs dependencies. Running setup-node a second time at the
+ # job level registered a duplicate pnpm cache post-step that failed the job
+ # during cleanup ("Path Validation Error ... do not exist"), so we rely on
+ # the composite alone for environment setup.
- name: Build the server
uses: ./.github/actions/build-server
with:
os: linux
arch: ${{ matrix.arch }}
+ - name: Install Playwright browsers
+ run: pnpm exec playwright install --with-deps
+
- name: Copy test fixture database
run: cp packages/trilium-core/src/test/fixtures/document.db apps/server/spec/db/document.db