Skip to content

Commit 10f7960

Browse files
committed
Update workflow.
1 parent 0758d94 commit 10f7960

1 file changed

Lines changed: 24 additions & 7 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,46 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
1821
- uses: actions/setup-dotnet@v4
1922
with:
2023
dotnet-version: |
21-
6.0.x
22-
7.0.x
2324
8.0.x
25+
9.0.x
2426
2527
- name: Build
2628
run: |
2729
dotnet restore
2830
dotnet build -c Release --no-restore
2931
3032
- name: Test
31-
run: dotnet test -c Release --no-restore --no-build --verbosity minimal
33+
run: dotnet test -c Release --no-restore --no-build --verbosity minimal --collect:"XPlat Code Coverage" --results-directory ./coverage
3234

3335
- name: Inspect
34-
uses: JetBrains/ReSharper-InspectCode@v0.3
36+
uses: JetBrains/ReSharper-InspectCode@v0.8
3537
with:
36-
tool-version: 2023.3.4
37-
solution: Remora.Extensions.Options.Immutable.sln
38+
tool-version: 2024.3.0
39+
solution: Remora.Discord.sln
3840
build: false
3941
no-build: true
40-
telemetry-optout: true
42+
43+
- name: Coverage
44+
uses: irongut/CodeCoverageSummary@v1.3.0
45+
with:
46+
filename: coverage/**/coverage.cobertura.xml
47+
badge: true
48+
format: markdown
49+
indicators: true
50+
output: both
51+
thresholds: '60 80'
52+
53+
- uses: actions/upload-artifact@v4
54+
if: github.event_name == 'pull_request'
55+
with:
56+
name: coverage
57+
path: code-coverage-results.md
4158

4259
- name: Package
4360
if: github.ref == 'refs/heads/main' && github.event_name == 'push'

0 commit comments

Comments
 (0)