@@ -6,17 +6,18 @@ concurrency:
66
77permissions :
88 contents : read # to fetch code (actions/checkout)
9+ security-events : write # for reporting InspectCode issues
910
1011jobs :
1112 inspect-code :
1213 name : Code Quality
1314 runs-on : ubuntu-latest
1415 steps :
1516 - name : Checkout
16- uses : actions/checkout@v4
17+ uses : actions/checkout@v6
1718
1819 - name : Install .NET 8.0.x
19- uses : actions/setup-dotnet@v4
20+ uses : actions/setup-dotnet@v5
2021 with :
2122 dotnet-version : " 8.0.x"
2223 cache : false
2829 run : dotnet restore osu.Desktop.slnf
2930
3031 - name : Restore inspectcode cache
31- uses : actions/cache@v4
32+ uses : actions/cache@v5
3233 with :
3334 path : ${{ github.workspace }}/inspectcode
3435 key : inspectcode-${{ hashFiles('.config/dotnet-tools.json', '.github/workflows/ci.yml', 'osu.sln*', 'osu*.slnf', '.editorconfig', '.globalconfig', 'CodeAnalysis/*', '**/*.csproj', '**/*.props') }}
@@ -50,10 +51,14 @@ jobs:
5051 exit $exit_code
5152
5253 - name : InspectCode
53- run : dotnet jb inspectcode $(pwd)/osu.Desktop.slnf --no-build --output="inspectcodereport.xml" --caches-home="inspectcode" --verbosity=WARN
54-
55- - name : NVika
56- run : dotnet nvika parsereport "${{github.workspace}}/inspectcodereport.xml" --treatwarningsaserrors
54+ uses : JetBrains/ReSharper-InspectCode@v0.11
55+ with :
56+ # this is WTF tier but if you don't specify *both* of these the defaults assume `build: true`
57+ build : false
58+ no-build : true
59+ solution : ./osu.Desktop.slnf
60+ caches-home : inspectcode
61+ verbosity : WARN
5762
5863 test :
5964 name : Test
@@ -73,10 +78,10 @@ jobs:
7378 timeout-minutes : 120
7479 steps :
7580 - name : Checkout
76- uses : actions/checkout@v4
81+ uses : actions/checkout@v6
7782
7883 - name : Install .NET 8.0.x
79- uses : actions/setup-dotnet@v4
84+ uses : actions/setup-dotnet@v5
8085 with :
8186 dotnet-version : " 8.0.x"
8287 cache : false
@@ -105,7 +110,7 @@ jobs:
105110 # Attempt to upload results even if test fails.
106111 # https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#always
107112 - name : Upload Test Results
108- uses : actions/upload-artifact@v4
113+ uses : actions/upload-artifact@v7
109114 if : ${{ always() }}
110115 with :
111116 name : osu-test-results-${{matrix.os.prettyname}}-${{matrix.threadingMode}}-${{matrix.suite}}
@@ -117,16 +122,16 @@ jobs:
117122 timeout-minutes : 60
118123 steps :
119124 - name : Checkout
120- uses : actions/checkout@v4
125+ uses : actions/checkout@v6
121126
122127 - name : Setup JDK 11
123- uses : actions/setup-java@v4
128+ uses : actions/setup-java@v5
124129 with :
125130 distribution : microsoft
126131 java-version : 11
127132
128133 - name : Install .NET 8.0.x
129- uses : actions/setup-dotnet@v4
134+ uses : actions/setup-dotnet@v5
130135 with :
131136 dotnet-version : " 8.0.x"
132137 cache : false
@@ -144,10 +149,10 @@ jobs:
144149 timeout-minutes : 60
145150 steps :
146151 - name : Checkout
147- uses : actions/checkout@v4
152+ uses : actions/checkout@v6
148153
149154 - name : Install .NET 8.0.x
150- uses : actions/setup-dotnet@v4
155+ uses : actions/setup-dotnet@v5
151156 with :
152157 dotnet-version : " 8.0.x"
153158 cache : false
0 commit comments