File tree 1 file changed +22
-7
lines changed
1 file changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -15,29 +15,44 @@ jobs:
15
15
16
16
steps :
17
17
- uses : actions/checkout@v4
18
+
18
19
- uses : actions/setup-dotnet@v4
19
20
with :
20
21
dotnet-version : |
21
- 6.0.x
22
- 7.0.x
23
22
8.0.x
23
+ 9.0.x
24
24
25
25
- name : Build
26
26
run : |
27
27
dotnet restore
28
28
dotnet build -c Release --no-restore
29
29
30
30
- name : Test
31
- run : dotnet test -c Release --no-restore --no-build --verbosity minimal
31
+ run : dotnet test -c Release --no-restore --no-build --verbosity minimal --collect:"XPlat Code Coverage" --results-directory ./coverage
32
32
33
33
- name : Inspect
34
- uses : JetBrains/ReSharper-InspectCode@v0.3
34
+ uses : JetBrains/ReSharper-InspectCode@v0.8
35
35
with :
36
- tool-version : 2023 .3.4
37
- solution : Remora.Results .sln
36
+ tool-version : 2024 .3.0
37
+ solution : Remora.Discord .sln
38
38
build : false
39
39
no-build : true
40
- telemetry-optout : true
40
+
41
+ - name : Coverage
42
+
43
+ with :
44
+ filename : coverage/**/coverage.cobertura.xml
45
+ badge : true
46
+ format : markdown
47
+ indicators : true
48
+ output : both
49
+ thresholds : ' 60 80'
50
+
51
+ - uses : actions/upload-artifact@v4
52
+ if : github.event_name == 'pull_request'
53
+ with :
54
+ name : coverage
55
+ path : code-coverage-results.md
41
56
42
57
- name : Package
43
58
if : github.ref == 'refs/heads/main' && github.event_name == 'push'
You can’t perform that action at this time.
0 commit comments