Update dev #10
Workflow file for this run
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 | |
on: | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
PSScriptAnalyzer: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: PSScriptAnalyzer | |
shell: pwsh | |
run: | | |
Install-Module -Name PSScriptAnalyzer -Force | |
Invoke-ScriptAnalyzer -Path ./ -Recurse -Severity Error -EnableExit | |
Pester-pwsh: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Pester tests (pwsh) | |
run: | | |
Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor | |
Set-PSRepository psgallery -InstallationPolicy trusted | |
Install-Module -Name Pester -RequiredVersion 5.6.1 -confirm:$false -Force | |
Invoke-Pester -Path ./ | |
shell: pwsh | |
Pester-posh: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Pester tests (PowerShell) | |
run: | | |
Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor | |
Set-PSRepository psgallery -InstallationPolicy trusted | |
Install-Module -Name Pester -RequiredVersion 5.6.1 -Confirm:$false -Force | |
Invoke-Pester -Path ./ | |
if ($Error[0].Fullyqualifiederrorid -eq 'PesterAssertionFailed') {exit 1} | |
shell: powershell |