From 1393d1e11a0d6f880dbc07dfc55326ec73234b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Varga?= Date: Wed, 31 Jul 2024 12:19:53 +0200 Subject: [PATCH] fix: matrix build --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 971c538..6e22ac7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,6 +62,7 @@ jobs: JUNIT5_ROBOLECTRIC_EXTENSION_GPG_SIGNING_PASSWORD: '${{ secrets.JUNIT5_ROBOLECTRIC_EXTENSION_GPG_SIGNING_PASSWORD }}' - name: Upload unit test report uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 + if: ${{ always() && hashFiles('**/test-results/**/*.xml') != '' }} with: name: ${{ matrix.os }}-unit-test-report path: | @@ -70,7 +71,7 @@ jobs: retention-days: 5 - name: Upload coverage report uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 - if: ${{ hashFiles('build/reports/kover/report.xml') != '' }} + if: ${{ always() && hashFiles('build/reports/kover/report.xml') != '' }} with: name: ${{ matrix.os }}-kover-report path: ${{ github.workspace }}/build/reports/kover/report.xml