File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1064,10 +1064,25 @@ jobs:
10641064 if : ${{ runner.os == 'windows' }}
10651065 shell : powershell
10661066 run : |
1067- $ErrorActionPreference = "Stop"
1067+ function Error-OnFailure {
1068+ param (
1069+ [Parameter(Mandatory)]
1070+ [ScriptBlock]$Command
1071+ )
1072+
1073+ & $Command
1074+
1075+ if ($LASTEXITCODE -ne 0) {
1076+ exit $LASTEXITCODE
1077+ }
1078+ }
10681079 micromamba activate CppInterOp-wasm
10691080 cd .\xeus-cpp\build\test
10701081 node test_xeus_cpp.js
1082+ echo "Running test_xeus_cpp in Firefox"
1083+ Error-OnFailure { emrun.bat --browser="firefox.exe" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html }
1084+ echo "Running test_xeus_cpp in Chromium"
1085+ Error-OnFailure { emrun.bat --browser="chrome.exe" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html }
10711086
10721087 - name : Jupyter Lite integration
10731088 if : ${{ runner.os != 'windows' }}
You can’t perform that action at this time.
0 commit comments