Skip to content

IQuantifiable

IQuantifiable #18

Workflow file for this run

name: Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ./FlashLFQ.sln
- name: Build
run: dotnet build --no-restore
- name: Add coverlet collector
run: dotnet add Test/Test.csproj package coverlet.collector -v 6.0.2
- name: Test
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" /p:CoverletOutputFormat=cobertura ./Test/Test.csproj
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
files: Test*/TestResults/*/coverage.cobertura.xml
fail_ci_if_error: true