Skip to content

Commit 5ca3de1

Browse files
committed
.github/workflows: bug fix: set Xvfb
1 parent f61417c commit 5ca3de1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
go: ['1.22.x', '1.23.x', '1.24.x']
1111
name: Test with Go ${{ matrix.go }} on ${{ matrix.os }}
1212
runs-on: ${{ matrix.os }}
13+
env:
14+
DISPLAY: ':99.0'
1315
defaults:
1416
run:
1517
shell: bash
@@ -28,6 +30,11 @@ jobs:
2830
sudo apt-get update
2931
sudo apt-get install libasound2-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
3032
33+
- name: Xvfb
34+
if: runner.os == 'Linux'
35+
run: |
36+
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
37+
3138
- name: Test
3239
run: |
3340
go test -v ./...

0 commit comments

Comments
 (0)