Try waiting for the server

This commit is contained in:
Ben Menesini
2024-05-08 02:43:41 +00:00
parent 6a5eef1d6d
commit 2fced8873a
2 changed files with 4 additions and 1 deletions

View File

@@ -22,7 +22,9 @@ jobs:
node-version: 18.x
cache: npm
- run: npm install
- run: npm run build
- run: npm run start-local-ci&
# Sleep for 60 seconds to allow the server to start
- run: sleep 60
- run: npm run test-ci -- --silent=false
env:
CI: true

View File

@@ -7,6 +7,7 @@
"build": "webpack",
"start": "npm run build -- --stats=errors-only && electron dist",
"start-local": "npm run build -- --stats=errors-only && electron dist --control.address=http://localhost:4444 --control.username=streamwall --control.password=local-dev",
"start-local-ci": "xvfb-maybe npm run build -- --stats=errors-only && xvfb-maybe electron dist --control.address=http://localhost:4444 --control.username=streamwall --control.password=local-dev",
"test": "jest",
"test-ci": "xvfb-maybe jest"
},