diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2381121c74..54061deef0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ env: permissions: id-token: write contents: read + checks: write concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true @@ -36,6 +37,13 @@ jobs: - name: Build and Test run: ./Build.ps1 shell: pwsh + - name: Report Test Results + uses: dorny/test-reporter@v1 + if: success() || failure() + with: + name: Test Results (Linux) + path: artifacts/**/*.trx + reporter: dotnet-trx build-windows: needs: build strategy: @@ -64,6 +72,13 @@ jobs: - name: Build and Test run: ./Build.ps1 shell: pwsh + - name: Report Test Results + uses: dorny/test-reporter@v1 + if: success() || failure() + with: + name: Test Results (Windows) + path: artifacts/**/*.trx + reporter: dotnet-trx - name: Sign packages run: |- foreach ($f in Get-ChildItem "./artifacts" -Filter "*.nupkg") { diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3204a42176..77074d6019 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,7 @@ on: permissions: id-token: write contents: read + checks: write jobs: build: strategy: @@ -26,6 +27,13 @@ jobs: - name: Build and Test run: ./Build.ps1 shell: pwsh + - name: Report Test Results + uses: dorny/test-reporter@v1 + if: always() + with: + name: Test Results (Linux) + path: artifacts/**/*.trx + reporter: dotnet-trx build-windows: needs: build strategy: @@ -54,6 +62,18 @@ jobs: - name: Build and Test run: ./Build.ps1 shell: pwsh + - name: Report Test Results + uses: dorny/test-reporter@v1 + if: always() + with: + name: Test Results (Windows) + path: artifacts/**/*.trx + reporter: dotnet-trx + - name: Generate SBOM + run: | + dotnet tool install --global Microsoft.Sbom.DotNetTool --version 1.2.0 + sbom-tool generate -b artifacts -bc src/AutoMapper -pn AutoMapper -pv ${{ github.ref_name }} -ps LuckyPennySoftware -nsb https://automapper.io/sbom + shell: pwsh - name: Sign packages run: |- foreach ($f in Get-ChildItem "./artifacts" -Filter "*.nupkg") {