Skip to content

Commit 40d297c

Browse files
committed
Update workflow.
1 parent 18888f8 commit 40d297c

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/workflows/dotnet.yml

+22-7
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,44 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v4
18+
1819
- uses: actions/setup-dotnet@v4
1920
with:
2021
dotnet-version: |
21-
6.0.x
22-
7.0.x
2322
8.0.x
23+
9.0.x
2424
2525
- name: Build
2626
run: |
2727
dotnet restore
2828
dotnet build -c Release --no-restore
2929
3030
- 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
3232

3333
- name: Inspect
34-
uses: JetBrains/ReSharper-InspectCode@v0.3
34+
uses: JetBrains/ReSharper-InspectCode@v0.8
3535
with:
36-
tool-version: 2023.3.4
37-
solution: Remora.Results.sln
36+
tool-version: 2024.3.0
37+
solution: Remora.Discord.sln
3838
build: false
3939
no-build: true
40-
telemetry-optout: true
40+
41+
- name: Coverage
42+
uses: irongut/[email protected]
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
4156

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

0 commit comments

Comments
 (0)