Skip to content

Build your personal knowledge base with Trilium Notes

feat(ci): display trace if playwright fails in docker

Elian Doran002c567ae970
diff --git a/.github/workflows/main-docker.yml b/.github/workflows/main-docker.yml
index e59ddc318a..53c0ae71f5 100644
--- a/.github/workflows/main-docker.yml
+++ b/.github/workflows/main-docker.yml
@@ -83,6 +83,14 @@ jobs:
- name: Run Playwright tests
run: TRILIUM_DOCKER=1 TRILIUM_PORT=8082 pnpm exec nx run server-e2e:e2e
+
+ - name: Upload Playwright trace
+ if: failure()
+ uses: actions/upload-artifact@v4
+ with:
+ name: Playwright trace (${{ matrix.dockerfile }})
+ path: test-output/playwright/output
+
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with: