Skip to content

Commit b65ac90

Browse files
authored
Merge pull request #13658 from gitbutlerapp/blackbox-logs
Fix e2e logs path and combine blackbox test output into single flat artifact
2 parents bcbee16 + 4d0dfbd commit b65ac90

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/test-e2e.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,18 @@ jobs:
8080
if: ${{ github.ref != 'refs/heads/master' }}
8181
run: xvfb-run pnpm test:e2e:blackbox
8282

83-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
83+
- name: Flatten test results
8484
if: failure()
85-
with:
86-
name: e2e-videos
87-
overwrite: true
88-
path: ./e2e/blackbox/videos
85+
run: |
86+
mkdir -p ./e2e-output
87+
find ./e2e/blackbox/videos -type f -exec cp {} ./e2e-output/ \; 2>/dev/null || true
88+
find ~/.local/share/com.gitbutler.app*/logs -type f -exec cp {} ./e2e-output/ \; 2>/dev/null || true
8989
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9090
if: failure()
9191
with:
92-
name: e2e-logs
92+
name: e2e-blackbox-output
9393
overwrite: true
94-
path: ~/.config/com.gitbutler.app*/logs
94+
path: ./e2e-output/
9595

9696
playwright:
9797
name: e2e-playwright

0 commit comments

Comments
 (0)