Skip to content

add CLEANSCHEMA symbols (#2065) #3

add CLEANSCHEMA symbols (#2065)

add CLEANSCHEMA symbols (#2065) #3

Workflow file for this run

name: 'PowerShell'
on:
push:
branches: [ "main", "releases/*" ]
paths: ["**.ps1", "**.psm1", "**.psd1", ".github/workflows/powershell.yaml" ]
pull_request:
branches: [ "main", "releases/*" ]
paths: ["**.ps1", "**.psm1", "**.psd1", ".github/workflows/powershell.yaml" ]
permissions:
contents: read
jobs:
PSScriptAnalyzer:
# https://github.com/microsoft/psscriptanalyzer-action
# For more information on PSScriptAnalyzer in general, see
# https://github.com/PowerShell/PSScriptAnalyzer
name: Run PSScriptAnalyzer
runs-on: ubuntu-latest
permissions:
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run PSScriptAnalyzer
uses: microsoft/psscriptanalyzer-action@6b2948b1944407914a58661c49941824d149734f # v1.1
with:
path: .\
recurse: true
excludeRule: '"PSAvoidUsingInvokeExpression", "PSUseShouldProcessForStateChangingFunctions", "PSAvoidUsingWriteHost", "PSAvoidUsingCmdletAliases", "PSUseSingularNouns", "PSUseApprovedVerbs"'
output: results.sarif
# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
with:
sarif_file: results.sarif
RunTests:
name: Run PS Tests
runs-on: windows-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run PS Tests
run: |
. (Join-Path "." "build/scripts/tests/runTests.ps1")