Skip to content

build: use .NET 6 again #153

build: use .NET 6 again

build: use .NET 6 again #153

name: Run Tests and Coverage
on:
push:
pull_request:
branches:
- main
jobs:
test-and-cover:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore workloads
run: dotnet workload restore
- name: Build 'CsvProc9000'
run: dotnet build "CsvProc9000/CsvProc9000.csproj"
- name: Test 'CsvProc9000.Tests'
run: dotnet test "CsvProc9000.Tests/CsvProc9000.Tests.csproj" --collect:"XPlat Code Coverage" --blame-hang --blame-hang-timeout 60s /property:GenerateFullPaths=true /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:ExcludeByAttribute='ExcludeFromCodeCoverage' /p:SkipAutoProps=true
- name: Coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.cobertura.xml