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