Skip to content

Commit

Permalink
test with xvfb-maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
aethernet committed Apr 25, 2024
1 parent 451b2aa commit 781fcf9
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 12 deletions.
9 changes: 0 additions & 9 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ runs:
cat < package.json | jq -r '.hostDependencies[][]' - | \
xargs -L1 echo | sed 's/|//g' | xargs -L1 \
sudo apt-get --ignore-missing install || true
# starts the virtual framebuffer as screen 99, this will be referenced in the wdio config for the test to run
Xvfb :99 -ac &
env:
DISPLAY: ':99'
- name: Install host dependencies
if: runner.os == 'macOS'
Expand All @@ -58,11 +54,6 @@ runs:
# export DEBUG='electron-forge:*,sidecar'
# fi
# set DISPLAY to the virtual framebuffer only for Linux
if [[ "${{ runner.os }}" == "Linux" ]]; then
export DISPLAY=":99"
fi
npm ci
npm run lint
npm run package
Expand Down
71 changes: 70 additions & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"package": "electron-forge package",
"start": "electron-forge start",
"make": "electron-forge make",
"wdio": "wdio run ./wdio.conf.ts"
"wdio": "xvfb-maybe wdio run ./wdio.conf.ts"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -57,7 +57,8 @@
"styled-components": "5.3.6",
"sys-class-rgb-led": "3.0.1",
"uuid": "9.0.1",
"ws": "^8.16.0"
"ws": "^8.16.0",
"xvfb-maybe": "^0.2.1"
},
"devDependencies": {
"@balena/lint": "7.2.4",
Expand Down

0 comments on commit 781fcf9

Please sign in to comment.