Skip to content

Commit

Permalink
ci: Setup unit test report
Browse files Browse the repository at this point in the history
  • Loading branch information
warnyul committed Jul 31, 2024
1 parent 807224c commit 6c6679f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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') != '' }}
Expand Down

0 comments on commit 6c6679f

Please sign in to comment.