From ca3117264a99ba634f7a8d70cd3bb6dc91df6664 Mon Sep 17 00:00:00 2001 From: marracuene Date: Sat, 20 Jun 2020 10:06:52 +0200 Subject: [PATCH] If build fails, upload test reports as an artifact, so that they can be investigated. See https://github.com/gradle/playframework/issues/136 Signed-off-by: marracuene --- .github/workflows/gradle-build-pr.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/gradle-build-pr.yml b/.github/workflows/gradle-build-pr.yml index 4576e6b3..1356d06a 100644 --- a/.github/workflows/gradle-build-pr.yml +++ b/.github/workflows/gradle-build-pr.yml @@ -15,3 +15,8 @@ jobs: - uses: eskatos/gradle-command-action@v1 with: arguments: ${{ matrix.task }} + - uses: actions/upload-artifact@v2 + if: failure() + with: + name: testreports + path: build/reports/tests # or path/to/artifact \ No newline at end of file