4747    - name : Setup .NET 
4848      uses : actions/setup-dotnet@v3 
4949      with :
50-         dotnet-version : 6.0.x 
50+         dotnet-version : | 
51+           6.0.x 
52+           8.0.x 
53+ dotnet-quality : ' preview' 
5154    - name : Setup PowerShell (Ubuntu) 
5255      if : matrix.os == 'ubuntu-latest' 
5356      run : | 
8790name : Git checkout 
8891      uses : actions/checkout@v4 
8992    - name : Restore tools 
93+       shell : pwsh 
9094      run : | 
91-         dotnet tool restore 
95+         # Temporary workaround for bug in .NET 8 RC2 at https://github.com/dotnet/sdk/issues/35989 
96+         $tools = Get-Content ".config/dotnet-tools.json" | ConvertFrom-Json 
97+         foreach ($tool in $tools.tools.PsObject.Properties) { 
98+             & dotnet tool install $tool.Name --version $tool.Value.version 
99+         } 
92100name : Restore packages 
93101      run : | 
94102        dotnet restore 
@@ -181,18 +189,26 @@ jobs:
181189    - name : Setup .NET 
182190      uses : actions/setup-dotnet@v3 
183191      with :
184-         dotnet-version : 6.0.x 
192+         dotnet-version : | 
193+           6.0.x 
194+           8.0.x 
195+ dotnet-quality : ' preview' 
185196    - name : Git checkout 
186197      uses : actions/checkout@v4 
187198    - name : Restore tools 
199+       shell : pwsh 
188200      run : | 
189-         dotnet tool restore 
201+         # Temporary workaround for bug in .NET 8 RC2 at https://github.com/dotnet/sdk/issues/35989 
202+         $tools = Get-Content ".config/dotnet-tools.json" | ConvertFrom-Json 
203+         foreach ($tool in $tools.tools.PsObject.Properties) { 
204+             & dotnet tool install $tool.Name --version $tool.Value.version 
205+         } 
190206name : InspectCode 
191207      shell : pwsh 
192208      run : | 
193209        $inspectCodeOutputPath = Join-Path $env:RUNNER_TEMP 'jetbrains-inspectcode-results.xml' 
194210        Write-Output "INSPECT_CODE_OUTPUT_PATH=$inspectCodeOutputPath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append 
195-         dotnet jb inspectcode JsonApiDotNetCore.sln --build --output="$inspectCodeOutputPath" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --properties:ContinuousIntegrationBuild=false --severity=WARNING --verbosity=WARN -dsl=GlobalAll -dsl=GlobalPerProduct -dsl=SolutionPersonal -dsl=ProjectPersonal 
211+         dotnet jb inspectcode JsonApiDotNetCore.sln --build --dotnetcoresdk=$(dotnet --version) -- output="$inspectCodeOutputPath" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --properties:ContinuousIntegrationBuild=false --severity=WARNING --verbosity=WARN -dsl=GlobalAll -dsl=GlobalPerProduct -dsl=SolutionPersonal -dsl=ProjectPersonal 
196212name : Verify outcome 
197213      shell : pwsh 
198214      run : | 
@@ -232,14 +248,22 @@ jobs:
232248    - name : Setup .NET 
233249      uses : actions/setup-dotnet@v3 
234250      with :
235-         dotnet-version : 6.0.x 
251+         dotnet-version : | 
252+           6.0.x 
253+           8.0.x 
254+ dotnet-quality : ' preview' 
236255    - name : Git checkout 
237256      uses : actions/checkout@v4 
238257      with :
239258        fetch-depth : 2 
240259    - name : Restore tools 
260+       shell : pwsh 
241261      run : | 
242-         dotnet tool restore 
262+         # Temporary workaround for bug in .NET 8 RC2 at https://github.com/dotnet/sdk/issues/35989 
263+         $tools = Get-Content ".config/dotnet-tools.json" | ConvertFrom-Json 
264+         foreach ($tool in $tools.tools.PsObject.Properties) { 
265+             & dotnet tool install $tool.Name --version $tool.Value.version 
266+         } 
243267name : Restore packages 
244268      run : | 
245269        dotnet restore 
@@ -253,13 +277,13 @@ jobs:
253277        $baseCommitHash = git rev-parse HEAD~1 
254278
255279        Write-Output "Running code cleanup on commit range $baseCommitHash..$headCommitHash in pull request." 
256-         dotnet regitlint -s JsonApiDotNetCore.sln --print-command --skip-tool-check --max-runs=5 --jb-profile="JADNC Full Cleanup" --jb --properties:Configuration=Release --jb --verbosity=WARN -f commits -a $headCommitHash -b $baseCommitHash --fail-on-diff --print-diff 
280+         dotnet regitlint -s JsonApiDotNetCore.sln --print-command --skip-tool-check --max-runs=5 --jb --dotnetcoresdk=$(dotnet --version) --jb -profile="JADNC Full Cleanup" --jb --properties:Configuration=Release --jb --verbosity=WARN -f commits -a $headCommitHash -b $baseCommitHash --fail-on-diff --print-diff 
257281name : CleanupCode (on branch) 
258282      if : github.event_name == 'push' || github.event_name == 'release' 
259283      shell : pwsh 
260284      run : | 
261285        Write-Output "Running code cleanup on all files." 
262-         dotnet regitlint -s JsonApiDotNetCore.sln --print-command --skip-tool-check --jb-profile="JADNC Full Cleanup" --jb --properties:Configuration=Release --jb --verbosity=WARN --fail-on-diff --print-diff 
286+         dotnet regitlint -s JsonApiDotNetCore.sln --print-command --skip-tool-check --jb --dotnetcoresdk=$(dotnet --version)--jb -profile="JADNC Full Cleanup" --jb --properties:Configuration=Release --jb --verbosity=WARN --fail-on-diff --print-diff 
263287
264288publish :
265289    timeout-minutes : 60 
0 commit comments