File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
src/NHibernate.Search.Tests Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 38
38
run : dotnet restore src
39
39
40
40
- name : Build
41
- run : dotnet build src --no-restore
41
+ run : dotnet build src -m:1 - -no-restore
42
42
43
43
- name : Configure
44
44
run : |
47
47
xmlstarlet ed -L -N ns="urn:nhibernate-configuration-2.2" -u '//ns:property[@name="connection.connection_string"]' -v '${{matrix.CONNECTION_STRING}}' hibernate.cfg.xml
48
48
49
49
- name : Test
50
- run : dotnet test src -f net6.0 --no-build --verbosity normal
50
+ run : dotnet test src -f net6.0 --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage
51
+
52
+ - name : Code Coverage Report
53
+
54
+ with :
55
+ filename : coverage/**/coverage.cobertura.xml
56
+ badge : true
57
+ fail_below_min : true
58
+ format : markdown
59
+ hide_branch_rate : false
60
+ hide_complexity : true
61
+ indicators : true
62
+ output : both
63
+ thresholds : ' 60 80'
64
+
65
+ - name : Add Coverage PR Comment
66
+ uses : marocchino/sticky-pull-request-comment@v2
67
+ if : github.event_name == 'pull_request'
68
+ with :
69
+ recreate : true
70
+ path : code-coverage-results.md
Original file line number Diff line number Diff line change 16
16
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.3.2" />
17
17
<PackageReference Include =" NUnit" Version =" 3.13.3" />
18
18
<PackageReference Include =" NUnit3TestAdapter" Version =" 4.2.1" />
19
+ <PackageReference Include =" coverlet.collector" Version =" 3.1.2" PrivateAssets =" All" />
19
20
</ItemGroup >
20
21
<ItemGroup Condition =" '$(TargetFramework)' == 'net6.0'" >
21
22
<PackageReference Include =" System.Data.SqlClient" Version =" 4.8.3" />
You can’t perform that action at this time.
0 commit comments