|
43 | 43 | dotnet-version: | |
44 | 44 | 6.0.x |
45 | 45 | 8.0.x |
46 | | - - name: Setup PowerShell (Ubuntu) |
47 | | - if: matrix.os == 'ubuntu-latest' |
48 | | - run: | |
49 | | - dotnet tool install --global PowerShell |
50 | | - - name: Find latest PowerShell version (Windows) |
51 | | - if: matrix.os == 'windows-latest' |
52 | | - shell: pwsh |
53 | | - run: | |
54 | | - $packageName = "powershell" |
55 | | - $outputText = dotnet tool search $packageName --take 1 |
56 | | - $outputLine = ("" + $outputText) |
57 | | - $indexOfVersionLine = $outputLine.IndexOf($packageName) |
58 | | - $latestVersion = $outputLine.substring($indexOfVersionLine + $packageName.length).trim().split(" ")[0].trim() |
59 | | -
|
60 | | - Write-Output "Found PowerShell version: $latestVersion" |
61 | | - Write-Output "POWERSHELL_LATEST_VERSION=$latestVersion" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
62 | | - - name: Setup PowerShell (Windows) |
63 | | - if: matrix.os == 'windows-latest' |
64 | | - shell: cmd |
65 | | - run: | |
66 | | - set DOWNLOAD_LINK=https://github.com/PowerShell/PowerShell/releases/download/v%POWERSHELL_LATEST_VERSION%/PowerShell-%POWERSHELL_LATEST_VERSION%-win-x64.msi |
67 | | - set OUTPUT_PATH=%RUNNER_TEMP%\PowerShell-%POWERSHELL_LATEST_VERSION%-win-x64.msi |
68 | | - echo Downloading from: %DOWNLOAD_LINK% to: %OUTPUT_PATH% |
69 | | - curl --location --output %OUTPUT_PATH% %DOWNLOAD_LINK% |
70 | | - msiexec.exe /package %OUTPUT_PATH% /quiet USE_MU=1 ENABLE_MU=1 ADD_PATH=1 DISABLE_TELEMETRY=1 |
71 | | - - name: Setup PowerShell (macOS) |
72 | | - if: matrix.os == 'macos-latest' |
73 | | - run: | |
74 | | - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" |
75 | | - brew install --cask powershell |
76 | 46 | - name: Show installed versions |
77 | 47 | shell: pwsh |
78 | 48 | run: | |
@@ -235,13 +205,13 @@ jobs: |
235 | 205 | $baseCommitHash = git rev-parse HEAD~1 |
236 | 206 |
|
237 | 207 | Write-Output "Running code cleanup on commit range $baseCommitHash..$headCommitHash in pull request." |
238 | | - dotnet regitlint -s JsonApiDotNetCore.MongoDb.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 |
| 208 | + dotnet regitlint -s JsonApiDotNetCore.MongoDb.sln --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 |
239 | 209 | - name: CleanupCode (on branch) |
240 | 210 | if: github.event_name == 'push' || github.event_name == 'release' |
241 | 211 | shell: pwsh |
242 | 212 | run: | |
243 | 213 | Write-Output "Running code cleanup on all files." |
244 | | - dotnet regitlint -s JsonApiDotNetCore.MongoDb.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 |
| 214 | + dotnet regitlint -s JsonApiDotNetCore.MongoDb.sln --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 |
245 | 215 |
|
246 | 216 | publish: |
247 | 217 | timeout-minutes: 60 |
|
0 commit comments