File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
scripts/tests/PSScriptAnalyzer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,10 @@ BeforeDiscovery {
6363 }
6464}
6565
66- Describe " PSScriptAnalyzer" {
66+ Describe ' PSScriptAnalyzer' {
6767 BeforeAll {
68- $relativeSettingsFilePath = $SettingsFilePath.Replace ($PSScriptRoot , ' ' ).Trim(' \' ).Trim(' /' )
68+ $relativeSettingsFilePath = $SettingsFilePath.Replace ($PSScriptRoot , ' Action/' ).Trim(' \' ).Trim(' /' )
69+ $relativeSettingsFilePath = $SettingsFilePath.Replace ($env: GITHUB_WORKSPACE , ' Workspace/' ).Trim(' \' ).Trim(' /' )
6970 LogGroup " Invoke-ScriptAnalyzer -Path [$Path ] -Settings [$relativeSettingsFilePath ]" {
7071 $testResults = Invoke-ScriptAnalyzer - Path $Path - Settings $SettingsFilePath - Recurse - Verbose
7172 Write-Warning " Found [$ ( $testResults.Count ) ] issues"
You can’t perform that action at this time.
0 commit comments