@@ -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
2728 run : dotnet restore osu.Desktop.slnf
2829
2930 - name : Restore inspectcode cache
30- uses : actions/cache@v4
31+ uses : actions/cache@v5
3132 with :
3233 path : ${{ github.workspace }}/inspectcode
3334 key : inspectcode-${{ hashFiles('.config/dotnet-tools.json', '.github/workflows/ci.yml', 'osu.sln*', 'osu*.slnf', '.editorconfig', '.globalconfig', 'CodeAnalysis/*', '**/*.csproj', '**/*.props') }}
@@ -49,10 +50,14 @@ jobs:
4950 exit $exit_code
5051
5152 - name : InspectCode
52- run : dotnet jb inspectcode $(pwd)/osu.Desktop.slnf --no-build --output="inspectcodereport.xml" --caches-home="inspectcode" --verbosity=WARN
53-
54- - name : NVika
55- run : dotnet nvika parsereport "${{github.workspace}}/inspectcodereport.xml" --treatwarningsaserrors
53+ uses : JetBrains/ReSharper-InspectCode@v0.11
54+ with :
55+ # this is WTF tier but if you don't specify *both* of these the defaults assume `build: true`
56+ build : false
57+ no-build : true
58+ solution : ./osu.Desktop.slnf
59+ caches-home : inspectcode
60+ verbosity : WARN
5661
5762 test :
5863 name : Test
@@ -71,10 +76,10 @@ jobs:
7176 timeout-minutes : 120
7277 steps :
7378 - name : Checkout
74- uses : actions/checkout@v4
79+ uses : actions/checkout@v6
7580
7681 - name : Install .NET 8.0.x
77- uses : actions/setup-dotnet@v4
82+ uses : actions/setup-dotnet@v5
7883 with :
7984 dotnet-version : " 8.0.x"
8085
98103 # Attempt to upload results even if test fails.
99104 # https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#always
100105 - name : Upload Test Results
101- uses : actions/upload-artifact@v4
106+ uses : actions/upload-artifact@v7
102107 if : ${{ always() }}
103108 with :
104109 name : osu-test-results-${{matrix.os.prettyname}}-${{matrix.threadingMode}}
@@ -110,16 +115,16 @@ jobs:
110115 timeout-minutes : 60
111116 steps :
112117 - name : Checkout
113- uses : actions/checkout@v4
118+ uses : actions/checkout@v6
114119
115120 - name : Setup JDK 11
116- uses : actions/setup-java@v4
121+ uses : actions/setup-java@v5
117122 with :
118123 distribution : microsoft
119124 java-version : 11
120125
121126 - name : Install .NET 8.0.x
122- uses : actions/setup-dotnet@v4
127+ uses : actions/setup-dotnet@v5
123128 with :
124129 dotnet-version : " 8.0.x"
125130
@@ -135,10 +140,10 @@ jobs:
135140 timeout-minutes : 60
136141 steps :
137142 - name : Checkout
138- uses : actions/checkout@v4
143+ uses : actions/checkout@v6
139144
140145 - name : Install .NET 8.0.x
141- uses : actions/setup-dotnet@v4
146+ uses : actions/setup-dotnet@v5
142147 with :
143148 dotnet-version : " 8.0.x"
144149
0 commit comments