We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad76fa3 commit 0e68293Copy full SHA for 0e68293
1 file changed
.github/workflows/test-metatrader5-integration.yml
@@ -1,4 +1,4 @@
1
-name: MetaTrader5 CI Headless Setup
+name: Test | MetaTrader5 Integration Test
2
3
on: [push]
4
@@ -21,9 +21,16 @@ jobs:
21
-OutFile "mt5setup.exe"
22
shell: pwsh
23
24
- - name: Install MetaTrader5 silently
+ - name: Install MetaTrader5
25
run: |
26
- Start-Process -FilePath ".\mt5setup.exe" -ArgumentList "/silent" -Wait
+ # Start installer with /auto and /portable, with timeout protection
27
+ $process = Start-Process -FilePath ".\mt5setup.exe" -ArgumentList "/auto", "/portable" -PassThru
28
+ $process.WaitForExit(300000) # Wait max 5 minutes
29
+ if (-not $process.HasExited) {
30
+ Write-Host "MT5 installer stuck, killing..."
31
+ Stop-Process -Id $process.Id -Force
32
+ exit 1
33
+ }
34
shell: powershell
35
36
- name: Kill any existing MT5 processes
0 commit comments