diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d799467e3..b359ac458 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -320,12 +320,14 @@ jobs: - name: Run Pester tests (PowerShell) run: | - Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor + $PSVersionTable Set-PSRepository psgallery -InstallationPolicy trusted Install-Module -Name Pester -RequiredVersion 5.3.1 -Confirm:$false -Force - + $Error.clear() Invoke-Pester -Path "tests" -CI - shell: pwsh + if ($Error.Length -gt 0) {exit 1} + + shell: powershell - name: Discord notification uses: rjstone/discord-webhook-notify@v1