1414 push :
1515 branches : [ 'master', 'release/**' ]
1616 release :
17- types : [published]
17+ types : [ published ]
1818
1919concurrency :
2020 group : ${{ github.workflow }}-${{ github.ref }}
@@ -23,15 +23,15 @@ concurrency:
2323env :
2424 DOTNET_NOLOGO : true
2525 DOTNET_CLI_TELEMETRY_OPTOUT : true
26- SOLUTION_FILE : JsonApiDotNetCore.MongoDb.sln
26+ SOLUTION_FILE : JsonApiDotNetCore.MongoDb.slnx
2727
2828jobs :
2929 build-and-test :
3030 timeout-minutes : 60
3131 strategy :
3232 fail-fast : false
3333 matrix :
34- os : [ubuntu-latest, windows-latest, macos-latest]
34+ os : [ ubuntu-latest, windows-latest, macos-latest ]
3535 runs-on : ${{ matrix.os }}
3636 permissions :
3737 contents : read
@@ -114,7 +114,7 @@ jobs:
114114 strategy :
115115 fail-fast : false
116116 matrix :
117- os : [ubuntu-latest, windows-latest, macos-latest]
117+ os : [ ubuntu-latest, windows-latest, macos-latest ]
118118 runs-on : ${{ matrix.os }}
119119 permissions :
120120 contents : read
@@ -140,7 +140,7 @@ jobs:
140140 $inspectCodeOutputPath = Join-Path $env:RUNNER_TEMP 'jetbrains-inspectcode-results.xml'
141141 Write-Output "INSPECT_CODE_OUTPUT_PATH=$inspectCodeOutputPath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
142142 dotnet jb inspectcode --version
143- dotnet jb inspectcode $env:SOLUTION_FILE --build --dotnetcoresdk=$(dotnet --version) --output="$inspectCodeOutputPath" --format="xml" --profile =WarningSeverities.DotSettings --properties:Configuration=Release --properties:ContinuousIntegrationBuild =false --properties:RunAnalyzers =false --severity=WARNING --verbosity=WARN -dsl=GlobalAll -dsl=GlobalPerProduct -dsl=SolutionPersonal -dsl= ProjectPersonal
143+ dotnet jb inspectcode $env:SOLUTION_FILE --build --no-updates -- dotnetcoresdk=$(dotnet --version) --output="$inspectCodeOutputPath" --format="xml" --settings =WarningSeverities.DotSettings --properties:" Configuration=Release;RunAnalyzers =false;NuGetAudit =false;ContinuousIntegrationBuild=false" --severity=WARNING --verbosity=WARN --disable-settings-layers="GlobalAll;GlobalPerProduct;SolutionPersonal; ProjectPersonal"
144144 - name : Verify outcome
145145 shell : pwsh
146146 run : |
@@ -156,7 +156,7 @@ jobs:
156156 $issueType = $xml.report.IssueTypes.SelectSingleNode("IssueType[@Id='$($_.TypeId)']")
157157 $severity = $_.Severity ?? $issueType.Severity
158158
159- Write-Output "[$severity] $($_.File):$($_.Line) $($_.TypeId): $($_.Message)"
159+ Write-Output "[$severity] ($($_.TargetFramework)) $($_.File):$($_.Line) $($_.TypeId): $($_.Message)"
160160 })
161161 })
162162 }
@@ -168,11 +168,11 @@ jobs:
168168 }
169169
170170 cleanup-code :
171- timeout-minutes : 60
171+ timeout-minutes : 90
172172 strategy :
173173 fail-fast : false
174174 matrix :
175- os : [ubuntu-latest, windows-latest, macos-latest]
175+ os : [ ubuntu-latest, windows-latest, macos-latest ]
176176 runs-on : ${{ matrix.os }}
177177 permissions :
178178 contents : read
@@ -194,7 +194,9 @@ jobs:
194194 - name : Restore tools
195195 run : dotnet tool restore
196196 - name : Restore packages
197- run : dotnet restore
197+ run : dotnet restore /p:NuGetAudit=false
198+ - name : Build
199+ run : dotnet build --no-restore --configuration Release /p:RunAnalyzers=false
198200 - name : CleanupCode (on PR diff)
199201 if : ${{ github.event_name == 'pull_request' }}
200202 shell : pwsh
@@ -206,14 +208,14 @@ jobs:
206208
207209 Write-Output "Running code cleanup on commit range $baseCommitHash..$headCommitHash in pull request."
208210 dotnet jb cleanupcode --version
209- dotnet regitlint -s $env:SOLUTION_FILE --print-command --skip-tool-check --max-runs=5 --jb --dotnetcoresdk=$(dotnet --version) --jb-profile="JADNC Full Cleanup" --jb --properties:Configuration=Release --jb --properties:RunAnalyzers=false --jb --verbosity=WARN -f commits -a $headCommitHash -b $baseCommitHash --fail-on-diff --print-diff
211+ dotnet regitlint -s $env:SOLUTION_FILE --print-command --skip-tool-check --max-runs=5 --jb --dotnetcoresdk=$(dotnet --version) --jb-profile="JADNC Full Cleanup" --jb --no-updates --jb --properties:"Configuration=Release; RunAnalyzers=false;NuGetAudit=false" --jb --verbosity=WARN -f commits -a $headCommitHash -b $baseCommitHash --fail-on-diff --print-diff
210212 - name : CleanupCode (on branch)
211213 if : ${{ github.event_name == 'push' || github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
212214 shell : pwsh
213215 run : |
214216 Write-Output 'Running code cleanup on all files.'
215217 dotnet jb cleanupcode --version
216- dotnet regitlint -s $env:SOLUTION_FILE --print-command --skip-tool-check --jb --dotnetcoresdk=$(dotnet --version) --jb-profile="JADNC Full Cleanup" --jb --properties:Configuration=Release --jb --properties:RunAnalyzers=false --jb --verbosity=WARN --fail-on-diff --print-diff
218+ dotnet regitlint -s $env:SOLUTION_FILE --print-command --skip-tool-check --jb --dotnetcoresdk=$(dotnet --version) --jb-profile="JADNC Full Cleanup" --jb --no-updates --jb --properties:"Configuration=Release; RunAnalyzers=false;NuGetAudit=false" --jb --verbosity=WARN --fail-on-diff --print-diff
217219
218220 publish :
219221 timeout-minutes : 60
0 commit comments