Skip to content

Commit 264cdc8

Browse files
committed
fix: add sleep command and set DISPLAY environment variable for Xvfb in test workflow
1 parent 833774d commit 264cdc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ jobs:
2626
sudo apt-get install -y xvfb
2727
Xvfb :99 -screen 0 1024x768x24 &
2828
export DISPLAY=:99
29+
sleep 3
2930
- name: Checkout code
3031
uses: actions/checkout@v2
3132
- name: Install dependencies
3233
run: npm install
3334
- name: Compile the extension
3435
run: npm run compile
3536
- name: Run tests
37+
env:
38+
DISPLAY: :99
3639
run: npm test

0 commit comments

Comments
 (0)