Skip to content

Commit 7327c10

Browse files
committed
Add validations
1 parent 983f4c8 commit 7327c10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test-metatrader5-integration.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,17 @@ jobs:
2020
- name: Download MetaTrader 5
2121
run: |
2222
Invoke-WebRequest -Uri "https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe" -OutFile mt5setup.exe
23+
# Verify download was successful
24+
if (!(Test-Path "mt5setup.exe")) {
25+
Write-Error "MetaTrader 5 download failed."
26+
exit 1
27+
}
2328
2429
- name: Install MetaTrader 5 silently
2530
run: |
2631
Start-Process -FilePath .\mt5setup.exe -ArgumentList "/auto" -Wait
32+
# Give installation some time to complete
33+
Start-Sleep -Seconds 30
2734
2835
- name: Verify MetaTrader 5 Installation
2936
run: |

0 commit comments

Comments
 (0)