Skip to content

Add Powershell linting #2

Add Powershell linting

Add Powershell linting #2

name: Run PSPSScriptAnalyzer on PowerShell Scripts
on:
pull_request:
jobs:
PSScriptAnalyzer:
name: Pester test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PSScriptAnalyzer
shell: pwsh
run : |
Install-Module -Name PSScriptAnalyzer -Force
- name: Run PSScriptAnalyzer on PowerShell Scripts
shell: pwsh
run: |
Invoke-ScriptAnalyzer -Path ./files/ -Recurse -Severity Error -EnableExit