Skip to content

Commit 833774d

Browse files
committed
fix: update GitHub Actions workflow to set up Xvfb for testing
1 parent 21bc1bb commit 833774d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ jobs:
2020
steps:
2121
- name: Checkout repository
2222
uses: actions/checkout@v2
23-
24-
- name: Set up Node.js
25-
uses: actions/setup-node@v2
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
23+
- name: Set up Xvfb
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install -y xvfb
27+
Xvfb :99 -screen 0 1024x768x24 &
28+
export DISPLAY=:99
29+
- name: Checkout code
30+
uses: actions/checkout@v2
2931
- name: Install dependencies
3032
run: npm install
31-
3233
- name: Compile the extension
3334
run: npm run compile
34-
3535
- name: Run tests
3636
run: npm test

0 commit comments

Comments
 (0)