Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec59e86

Browse files
Add packages to get and use xvfb-run when running test Github Actions workflow under Ubuntu 20.04
Packages added: libxcb-icccm4 libxcb-shape0 libxkbcommon-x11-0 libxcblibxcb-xkb1 libxcb-cursor0 libxcb-keysyms1
1 parent 8a17316 commit ec59e86

2 files changed

Lines changed: 3725 additions & 1 deletion

File tree

‎.github/workflows/test.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ jobs:
1515
node-version: '18.12.1'
1616
- name: Install ubuntu deps
1717
if: contains(matrix.os, 'ubuntu-20.04')
18-
run: sudo apt install mesa-common-dev libglu1-mesa-dev libegl1 libopengl-dev
18+
run: sudo apt install mesa-common-dev libglu1-mesa-dev libegl1 libopengl-dev libxcb-icccm4 libxcb-shape0 libxkbcommon-x11-0 libxcb-xkb1 libxcb-cursor0 libxcb-keysyms1
1919
- name: Install deps
2020
run: npm install
2121
- name: Build nodegui
2222
run: npm run build
2323
env:
2424
CMAKE_BUILD_PARALLEL_LEVEL: 8
25+
- name: Run ubuntu tests
26+
if: contains(matrix.os, 'ubuntu-20.04')
27+
run: xvfb-run npm run test
2528
- name: Run tests
29+
if: {{ !contains(matrix.os, 'ubuntu-20.04') }}
2630
run: npm run test
2731
- name: Run linters for cpp
2832
run: npm run lint:cpp

0 commit comments

Comments
 (0)