From 2b521aa8d56b2f665068d4da53eb652dbff94d09 Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Thu, 23 Jul 2020 01:49:57 -0400 Subject: [PATCH] Add failure() check to upload-artifact --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2637991e..348b0c08 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,9 @@ jobs: - uses: microsoft/playwright-github-action@v1.3.0 - name: e2e tests (jest+playwright) run: npm run test:jest-e2e -- -ci - - uses: actions/upload-artifact@v2 + - name: Upload artifacts (diff output) + uses: actions/upload-artifact@v2 + if: failure() with: - name: diff_output + name: diff-output path: ${{ github.workspace }}/tests/**/__diff_output__/*