From b947c6a26643071b3e2c1111b0cba199999bcf89 Mon Sep 17 00:00:00 2001 From: Martossy Alex Date: Fri, 23 Aug 2024 09:12:59 +0200 Subject: [PATCH] Add comment for each platform --- .github/workflows/tests.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1d50d4f..91d9507 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -82,6 +82,12 @@ jobs: # todo: remove after tests report: runs-on: ubuntu-latest + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + - macos-latest permissions: contents: read actions: read @@ -99,7 +105,7 @@ jobs: - name: Download Coverage Report Artifacts uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: - pattern: dotnet-coverage-on-* + name: dotnet-coverage-on-${{ matrix.os }} path: coverage merge-multiple: true - name: Code Coverage Report @@ -109,9 +115,13 @@ jobs: badge: true format: markdown output: both + - name: Add platform info + run: | + echo "Platform: ${{ matrix.os }}" >> code-coverage-results.md - name: Add Coverage PR Comment uses: marocchino/sticky-pull-request-comment@v2 if: github.event_name == 'pull_request' with: recreate: true path: code-coverage-results.md + header: ${{ matrix.os }}