Skip to content

Bump Sentry.AspNetCore from 4.10.2 to 4.11.0 (#276) #616

Bump Sentry.AspNetCore from 4.10.2 to 4.11.0 (#276)

Bump Sentry.AspNetCore from 4.10.2 to 4.11.0 (#276) #616

Workflow file for this run

name: Build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
BUILD_ARTIFACT_PATH: ${{github.workspace}}/build-artifacts
jobs:
build:
name: Build & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" --settings CodeCoverage.runsettings --results-directory ${{env.BUILD_ARTIFACT_PATH}}/coverage
- name: Publish artifacts
uses: actions/upload-artifact@v4
with:
path: ${{env.BUILD_ARTIFACT_PATH}}
coverage:
name: Process code coverage
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Download coverage reports
uses: actions/download-artifact@v4
- name: Install ReportGenerator tool
run: dotnet tool install -g dotnet-reportgenerator-globaltool
- name: Prepare coverage reports
run: reportgenerator -reports:*/coverage/*/coverage.cobertura.xml -targetdir:./ -reporttypes:Cobertura
- name: Upload coverage report
uses: codecov/codecov-action@v4
with:
file: Cobertura.xml
fail_ci_if_error: false
- name: Save combined coverage report as artifact
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: Cobertura.xml