File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 4040 run : dotnet build --configuration Release /p:Version=${{ steps.get_version.outputs.VERSION }}
4141
4242 - name : Run Unit Tests
43- run : dotnet test --configuration Release --no-build --verbosity normal --logger "junit;LogFilePath=../results/test-results.xml"
43+ run : dotnet test --configuration Release --no-build --verbosity normal --logger "junit;LogFilePath=../results/test-results.xml" --collect:"XPlat Code Coverage"
4444
4545 - name : Test Report
4646 uses : dorny/test-reporter@v1
5050 path : " **/test-results.xml"
5151 reporter : java-junit
5252
53+ - name : Upload Coverage to Codecov
54+ uses : codecov/codecov-action@v4
55+ with :
56+ files : " **/coverage.cobertura.xml"
57+ token : ${{ secrets.CODECOV_TOKEN }}
58+ fail_ci_if_error : true
59+
5360 - name : Build NuGet Package
5461 run : dotnet pack WouterVanRanst.Utils/WouterVanRanst.Utils.csproj --configuration Release /p:Version=${{ steps.get_version.outputs.VERSION }}
5562
You can’t perform that action at this time.
0 commit comments