From 8aaa678f5556d55f419303c16d0222f4c6e06866 Mon Sep 17 00:00:00 2001 From: Jonathan Butler Date: Wed, 20 Nov 2024 16:06:51 -0500 Subject: [PATCH] Move psscriptanalzyer folder and associated PSSA config file, as the .github folder was not being loaded into the runner. --- .github/workflows/psscriptanalyzer.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/psscriptanalyzer.yml b/.github/workflows/psscriptanalyzer.yml index 17df6f2..e1de26d 100644 --- a/.github/workflows/psscriptanalyzer.yml +++ b/.github/workflows/psscriptanalyzer.yml @@ -9,6 +9,7 @@ on: branches: - main - development + - "feature/144-implement-dual-validation-psscriptanalyzer-with-standardized-settings" paths: - "**.ps1" - "**.psm1" @@ -28,11 +29,11 @@ jobs: Write-Host "Current location: $(Get-Location)" Write-Host "GITHUB_WORKSPACE: $env:GITHUB_WORKSPACE" - $settingsPath = Join-Path $env:GITHUB_WORKSPACE 'Hawk' 'tests' 'PSScriptAnalyzer' 'PSScriptAnalyzerSettings.psd1' + $settingsPath = Join-Path $env:GITHUB_WORKSPACE '.github' 'psscriptanalyzer' 'PSScriptAnalyzerSettings.psd1' Write-Host "Settings path: $settingsPath" - Write-Host "`nVerifying tests structure:" - Get-ChildItem -Path (Join-Path $env:GITHUB_WORKSPACE 'Hawk' 'tests') -Recurse | + Write-Host "`nVerifying .github structure:" + Get-ChildItem -Path (Join-Path $env:GITHUB_WORKSPACE '.github') -Recurse | Select-Object FullName - name: Install PSScriptAnalyzer @@ -44,7 +45,7 @@ jobs: - name: Run PSScriptAnalyzer shell: pwsh run: | - $settingsPath = Join-Path $env:GITHUB_WORKSPACE 'Hawk' 'tests' 'PSScriptAnalyzer' 'PSScriptAnalyzerSettings.psd1' + $settingsPath = Join-Path $env:GITHUB_WORKSPACE '.github' 'psscriptanalyzer' 'PSScriptAnalyzerSettings.psd1' Write-Host "Using settings file: $settingsPath" if (-not (Test-Path $settingsPath)) {