OSOE-560: Replace Write-Error with Write-Warning when retrying in Invoke-Analyzer.ps1 #173
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Analysis Failure | |
# Runs for PRs opened for any branch, and pushes to the dev branch. | |
on: | |
pull_request: | |
push: | |
branches: | |
- dev | |
jobs: | |
call-test-analysis-failure-nuget: | |
name: Test Analysis Failure - NuGet PackageReference | |
uses: Lombiq/GitHub-Actions/.github/workflows/test-analysis-failure.yml@dev | |
with: | |
machine-types: "['ubuntu-latest', 'windows-latest']" | |
build-directory: TestSolutions/Lombiq.Analyzers.PowerShell.PackageReference | |
timeout-minutes: 30 | |
build-expected-code-analysis-errors: | | |
MSB3073: The command exited with non-zero code. | |
PSAvoidUsingAutomaticVariableAlias: '$_' is an alias of '$PSItem'. | |
PSAvoidUsingCmdletAliases: '%' is an alias of 'ForEach-Object'. | |
PSAvoidUsingEmptyCatchBlock: Empty catch block is used. | |
PSAvoidUsingLineContinuation: Using backtick (line continuation) makes the code harder to read and maintain. | |
PSUseApprovedVerbs: The cmdlet 'Violate-Analyzers' uses an unapproved verb. | |
PSUseSingularNouns: The cmdlet 'Violate-Analyzers' uses a plural noun. | |
PSAvoidUsingWriteHost: File 'Violate-Analyzers.ps1' uses Write-Host. | |
PSUseConsistentIndentation: Indentation not consistent | |
PSAvoidUsingDoubleQuotesForConstantString: Use single quotes when a string is constant. | |
call-test-analysis-failure-local: | |
name: Test Analysis Failure - Local ProjectReference | |
uses: Lombiq/GitHub-Actions/.github/workflows/test-analysis-failure.yml@dev | |
with: | |
machine-types: "['ubuntu-latest', 'windows-latest']" | |
build-directory: TestSolutions/Lombiq.Analyzers.PowerShell.ProjectReference | |
timeout-minutes: 30 | |
build-expected-code-analysis-errors: | | |
MSB3073: The command exited with non-zero code. | |
PSAvoidUsingAutomaticVariableAlias: '$_' is an alias of '$PSItem'. | |
PSAvoidUsingCmdletAliases: '%' is an alias of 'ForEach-Object'. | |
PSAvoidUsingEmptyCatchBlock: Empty catch block is used. | |
PSAvoidUsingLineContinuation: Using backtick (line continuation) makes the code harder to read and maintain. | |
PSUseApprovedVerbs: The cmdlet 'Violate-Analyzers' uses an unapproved verb. | |
PSUseSingularNouns: The cmdlet 'Violate-Analyzers' uses a plural noun. | |
PSAvoidUsingWriteHost: File 'Violate-Analyzers.ps1' uses Write-Host. | |
PSUseConsistentIndentation: Indentation not consistent | |
PSAvoidUsingDoubleQuotesForConstantString: Use single quotes when a string is constant. |