Skip to content

Commit

Permalink
Move psscriptanalzyer folder and associated PSSA config file, as the …
Browse files Browse the repository at this point in the history
….github folder was not being loaded into the runner.
  • Loading branch information
jonnybottles committed Nov 20, 2024
1 parent d6d9588 commit 8aaa678
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/psscriptanalyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches:
- main
- development
- "feature/144-implement-dual-validation-psscriptanalyzer-with-standardized-settings"
paths:
- "**.ps1"
- "**.psm1"
Expand All @@ -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
Expand All @@ -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)) {
Expand Down

0 comments on commit 8aaa678

Please sign in to comment.