Skip to content

Commit b0433c3

Browse files
authored
Merge pull request #10 from OpenForgeProject/github-workflows
fix: update GitHub Actions workflow to set up Xvfb for testing
2 parents 21bc1bb + 264cdc8 commit b0433c3

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/test.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,20 @@ 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+
sleep 3
30+
- name: Checkout code
31+
uses: actions/checkout@v2
2932
- name: Install dependencies
3033
run: npm install
31-
3234
- name: Compile the extension
3335
run: npm run compile
34-
3536
- name: Run tests
37+
env:
38+
DISPLAY: :99
3639
run: npm test

0 commit comments

Comments
 (0)