Use xvfb-maybe to build

This commit is contained in:
Ben Menesini
2024-05-08 02:25:39 +00:00
parent 246b2e08c4
commit fd3654f006
2 changed files with 2 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ jobs:
node-version: 18.x
cache: npm
- run: npm install
- run: npm run start-local
- run: npm run start-local-ci
- 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 && electron dist --control.address=http://localhost:4444 --control.username=streamwall --control.password=local-dev",
"test": "jest",
"test-ci": "xvfb-maybe jest"
},