Skip to content

Commit

Permalink
Update build.yml to generate proper coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
kotlerman committed Oct 27, 2024
1 parent d58e56a commit 120381c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test -c Release --no-build --verbosity normal -m:1 --results-directory ../TestResults -p:CollectCoverage=true -p:CoverletOutputFormat='"json,lcov"' -p:CoverletOutput=../TestResults/ -p:MergeWith=../TestResults/coverage.json
- name: Test .NET Framework 4.7.2
run: dotnet test -f net472 -c Release --no-build --verbosity normal -m:1 --results-directory ../TestResults -p:CollectCoverage=true -p:CoverletOutputFormat='"json,lcov"' -p:CoverletOutput=../TestResults/ -p:MergeWith=../TestResults/coverage.net472.json
- name: Test .NET 6
run: dotnet test -f net6 -c Release --no-build --verbosity normal -m:1 --results-directory ../TestResults -p:CollectCoverage=true -p:CoverletOutputFormat='"json,lcov"' -p:CoverletOutput=../TestResults/ -p:MergeWith=../TestResults/coverage.net6.json
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./src/TestResults/coverage.info
path-to-lcov: ./src/TestResults/coverage.net6.info
- name: Pack
run: dotnet pack -c Release --no-build -o ../packages
- name: Archive packages
Expand Down

0 comments on commit 120381c

Please sign in to comment.