Skip to content

Commit 8de2f19

Browse files
committed
Upload screenshots of failed unit tests
1 parent e1171c6 commit 8de2f19

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ jobs:
3434
pmdCiSecretPassphrase: ${{ secrets.PMD_CI_SECRET_PASSPHRASE }}
3535
githubToken: ${{ secrets.GITHUB_TOKEN }}
3636

37+
- name: Upload screenshots of failed unit tests
38+
uses: actions/upload-artifact@v4
39+
if: ${{ failure() }}
40+
with:
41+
name: screenshots-ubuntu-latest-2024-03
42+
path: net.sourceforge.pmd.eclipse.plugin.test/screenshots
43+
if-no-files-found: ignore
44+
3745

3846
build:
3947
needs: fail-fast-build
@@ -74,3 +82,11 @@ jobs:
7482
deploy: false
7583
pmdCiSecretPassphrase: ${{ secrets.PMD_CI_SECRET_PASSPHRASE }}
7684
githubToken: ${{ secrets.GITHUB_TOKEN }}
85+
86+
- name: Upload screenshots of failed unit tests
87+
uses: actions/upload-artifact@v4
88+
if: ${{ failure() }}
89+
with:
90+
name: screenshots-${{ matrix.os }}-${{ matrix.targetPlatform }}
91+
path: net.sourceforge.pmd.eclipse.plugin.test/screenshots
92+
if-no-files-found: ignore

0 commit comments

Comments
 (0)