Skip to content

Commit bb5708b

Browse files
committed
Add a check step to the GitHub actions
1 parent 7b5ebdb commit bb5708b

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

.github/workflows/macos-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ jobs:
2828
run: |
2929
export PATH="$(brew --prefix qt)/bin:$PATH"
3030
make -j$(sysctl -n hw.logicalcpu)
31+
32+
- name: Build and run tests
33+
run: |
34+
export PATH="($brew --prefix=qt)/bin:$PATH"
35+
cd tests/
36+
qmake6 tests.pro
37+
make -j$(sysctl -n hw.logicalcpu)
38+
QT_QPA_PLATFORM=offscreen make check

.github/workflows/ubuntu-build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@ jobs:
3434
- name: Build
3535
run: make -j$(nproc)
3636

37-
- name: Run tests
38-
run: make check || true
37+
- name: Build and run tests
38+
run: |
39+
cd tests/
40+
qmake6 tests.pro
41+
make -j$(nproc)
42+
QT_QPA_PLATFORM=offscreen make check

.github/workflows/windows-build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,13 @@ jobs:
3030

3131
- name: Build
3232
run: mingw32-make -j4
33+
34+
- name: Build and run tests
35+
run: |
36+
cd tests/
37+
qmake6 tests.pro
38+
mingw32-make -j4
39+
mingw32-make check
40+
env:
41+
QT_QPA_PLATFORM: offscreen
42+

0 commit comments

Comments
 (0)