Skip to content

Commit c6ec99b

Browse files
committed
workflow(fix): add winpty to call
1 parent 5c67f41 commit c6ec99b

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dev:gauge": "cd .\\examples\\gauge && npm run dev",
1515
"jest": "jest --verbose",
1616
"test": ".\\scripts\\test.bat",
17-
"test-workflow": "./scripts/test.sh",
17+
"test-workflow": ".\\scripts\\test_workflow.bat",
1818
"docker": ".\\scripts\\run_docker_cmd.bat"
1919
},
2020
"devDependencies": {

scripts/run_docker_cmd.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

scripts/run_docker_cmd_workflow.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@echo off
2+
3+
set image="ghcr.io/flybywiresim/dev-env@sha256:aa36c0e4b8c66c2ec0195a104f8ae04a8ffbf45e8ddb6a8aca4f7237436bd876"
4+
5+
cd %~dp0
6+
7+
winpty docker run --rm -it -v "%cd%\..\:/external" -v "%cd%\..\out:/out" %image% %*

scripts/test.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

scripts/test_workflow.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@echo off
2+
3+
cd %~dp0
4+
5+
rmdir /s /q ..\test_work
6+
mkdir ..\test_work
7+
8+
:: Docker is a must for now, WASI preopens don't exist on windows.
9+
call .\run_docker_cmd_workflow.bat npm run jest

0 commit comments

Comments
 (0)