diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cda257..9e750fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,8 +17,8 @@ jobs: build: strategy: matrix: - os: [ubuntu-22.04, windows-2022] - runs-on: ${{ matrix.os }} + os: [{ name: ubuntu-22.04, key: ubuntu }, { name: windows-2022, key: windows }] + runs-on: ${{ matrix.os.name }} permissions: actions: write contents: read @@ -63,7 +63,7 @@ jobs: - name: Upload unit test report uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 with: - name: unit-test-report + name: ${{ matrix.os.key }}-unit-test-report path: | ${{ github.workspace }}/**/build/reports/tests ${{ github.workspace }}/**/build/test-results @@ -72,7 +72,7 @@ jobs: uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 if: ${{ hashFiles('build/reports/kover/report.xml') != '' }} with: - name: kover-report + name: ${{ matrix.os.key }}-kover-report path: ${{ github.workspace }}/build/reports/kover/report.xml retention-days: 5 release: @@ -109,7 +109,7 @@ jobs: - name: Download unit test report uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 with: - name: unit-test-report + name: ubuntu-unit-test-report - name: Comment unit test report if: ${{ hashFiles('**/test-results/**/*.xml') != '' }} uses: mikepenz/action-junit-report@db71d41eb79864e25ab0337e395c352e84523afe # v4.3.1 @@ -129,7 +129,7 @@ jobs: - name: Download coverage report uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: - name: kover-report + name: ubuntu-kover-report - name: Comment branch coverage report to PR uses: mi-kas/kover-report@5f58465b6f395c8fa3adc2665e27250bad87de50 # v1.9 if: ${{ hashFiles('report.xml') != '' }}