Skip to content

Bump coverlet.msbuild from 6.0.4 to 10.0.1 #208

Bump coverlet.msbuild from 6.0.4 to 10.0.1

Bump coverlet.msbuild from 6.0.4 to 10.0.1 #208

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build and verify pull request
on:
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Check code formatting
run: dotnet format --verify-no-changes
- name: Build
run: dotnet build --no-restore
- name: Run SonarAnalyzer.CSharp
run: dotnet build --no-restore --no-incremental -warnaserror
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Check coverage
uses: b3b00/coverlet-action@1.2.5
with:
testProject: 'OddsCollector.Functions.Tests/OddsCollector.Functions.Tests.csproj'
output: 'lcov.info'
outputFormat: 'lcov'
excludes: '[program]*,*[test]test*'
threshold: 70