Skip to content

Commit c4ebf9a

Browse files
ids1024jackpot51
authored andcommitted
fix(ci): Use xvfb-run
1 parent 0817b49 commit c4ebf9a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
run-tests:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- run: sudo apt-get install cargo libgtk-3-dev libhidapi-dev libusb-1.0-0-dev
15+
- run: sudo apt-get install cargo libgtk-3-dev libhidapi-dev libusb-1.0-0-dev xvfb
1616
- uses: actions/checkout@v2
17-
- run: cargo test
17+
- run: xvfb-run cargo test
1818

1919
linux-x86_64:
2020
runs-on: ubuntu-latest
@@ -32,11 +32,12 @@ jobs:
3232
runs-on: ubuntu-latest
3333
needs: linux-x86_64
3434
steps:
35+
- run: sudo apt-get install xvfb
3536
- uses: actions/download-artifact@v2
3637
with:
3738
name: keyboard-configurator-linux-x86_64-${{ github.sha }}
3839
- run: chmod +x keyboard-configurator-x86_64.AppImage
39-
- run: ./keyboard-configurator-x86_64.AppImage --help-gtk
40+
- run: xvfb-run ./keyboard-configurator-x86_64.AppImage --help-gtk
4041

4142
windows-mingw32:
4243
runs-on: windows-latest

0 commit comments

Comments
 (0)