mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Exit-1 if invoke-pester created error entries
This commit is contained in:
parent
c324981a17
commit
e9fb645b98
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -320,12 +320,14 @@ jobs:
|
||||||
|
|
||||||
- name: Run Pester tests (PowerShell)
|
- name: Run Pester tests (PowerShell)
|
||||||
run: |
|
run: |
|
||||||
Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor
|
$PSVersionTable
|
||||||
Set-PSRepository psgallery -InstallationPolicy trusted
|
Set-PSRepository psgallery -InstallationPolicy trusted
|
||||||
Install-Module -Name Pester -RequiredVersion 5.3.1 -Confirm:$false -Force
|
Install-Module -Name Pester -RequiredVersion 5.3.1 -Confirm:$false -Force
|
||||||
|
$Error.clear()
|
||||||
Invoke-Pester -Path "tests" -CI
|
Invoke-Pester -Path "tests" -CI
|
||||||
shell: pwsh
|
if ($Error.Length -gt 0) {exit 1}
|
||||||
|
|
||||||
|
shell: powershell
|
||||||
|
|
||||||
- name: Discord notification
|
- name: Discord notification
|
||||||
uses: rjstone/discord-webhook-notify@v1
|
uses: rjstone/discord-webhook-notify@v1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user