File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed
Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 55 branches : [ main ]
66 pull_request :
77 branches : [ main ]
8+ workflow_dispatch :
89
910jobs :
1011 build-and-test :
7980 --configuration $CONFIGURATION \
8081 --connection "$ConnectionStrings__LocalDatabase"
8182
82- - name : Run tests
83- run : dotnet test -c $CONFIGURATION
83+ - name : Test
84+ run : dotnet test -c $CONFIGURATION --collect:"XPlat Code Coverage" --results-directory ./coverage
85+
86+ - name : Code Coverage Report
87+ 88+ with :
89+ filename : coverage/**/coverage.cobertura.xml
90+ badge : true
91+ fail_below_min : false
92+ format : markdown
93+ hide_branch_rate : false
94+ hide_complexity : true
95+ indicators : true
96+ output : both
97+ thresholds : ' 60 80'
98+
99+ - name : Add Coverage PR Comment
100+ uses : marocchino/sticky-pull-request-comment@v2
101+ if : github.event_name == 'pull_request'
102+ with :
103+ recreate : true
104+ path : code-coverage-results.md
You can’t perform that action at this time.
0 commit comments