Skip to content

[main] Update AL-Go System Files from microsoft/AL-Go-PTE@preview - aae02ad59c6f4cd9d551a613b1d230d93e5a3098 #6

[main] Update AL-Go System Files from microsoft/AL-Go-PTE@preview - aae02ad59c6f4cd9d551a613b1d230d93e5a3098

[main] Update AL-Go System Files from microsoft/AL-Go-PTE@preview - aae02ad59c6f4cd9d551a613b1d230d93e5a3098 #6

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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- 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@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
with:
sarif_file: results.sarif
RunTests:
name: Run PS Tests
runs-on: windows-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Run PS Tests
run: |
. (Join-Path "." "build/scripts/tests/runTests.ps1")