Skip to content

Merge pull request #22 from Kritner-Blogs/chore/16_nbgvPatch #8

Merge pull request #22 from Kritner-Blogs/chore/16_nbgvPatch

Merge pull request #22 from Kritner-Blogs/chore/16_nbgvPatch #8

Workflow file for this run

name: Code coverage
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
calculate-code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies 🔍
run: dotnet restore
- name: Build 🛠️
run: dotnet build -c Release --no-restore
- name: Test w/ coverage 🧪
run: dotnet test -c Release --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov
- name: Upload coverage 🚀
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./test/FlakyTest.XUnit.Tests/TestResults/coverage.info