Skip to content

Update

Update #184

name: Test & Coverage
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET 5 SDK
uses: actions/[email protected]
with:
dotnet-version: 5.0.x
- name: Setup .NET 6 SDK
uses: actions/[email protected]
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: ./src
run: dotnet restore
- name: Build
working-directory: ./src
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
- name: Test
working-directory: ./src
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
- name: Codecov
uses: codecov/[email protected]