[CI] Fix credscan by checking out all the repos used for buildng. (#2… #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI for pwsh | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test-pwsh: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Pester tests | |
run: | | |
Set-PSRepository psgallery -InstallationPolicy trusted | |
Install-Module -Name Pester -Confirm:$false -Force | |
Invoke-Pester -Path *.Tests.ps1 | |
if ($Error[0].Fullyqualifiederrorid -eq 'PesterAssertionFailed') {exit 1} | |
working-directory: ./tools/devops/automation/scripts | |
shell: pwsh |