Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 5df84d9

Browse files
committed
Add SWT_GTK3=0 env. var
Signed-off-by: Ondrej Dockal <odockal@redhat.com>
1 parent 62f8409 commit 5df84d9

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/build_test.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
branches: [master]
66

7+
env:
8+
SWT_GTK3: "0"
9+
710
jobs:
811
test:
912
runs-on: ${{ matrix.os }} # compiles and test on Ubuntu
@@ -38,11 +41,24 @@ jobs:
3841
restore-keys: |
3942
reddeer-${{ runner.os }}-maven-
4043
44+
- name: Install WebKit on linux
45+
if: matrix.os == 'ubuntu-latest'
46+
run: |
47+
sudo apt-get update -y
48+
sudo apt-get install libwebkit2gtk-4.0-37
49+
50+
- name: Echo SWT_GTK3 Env. variable
51+
run: echo "SWT_GTK3 is set to '${SWT_GTK3}'"
52+
4153
# Build and compile using Maven
42-
- name: Build/Compile and run unit tests
54+
- name: Build and compile
55+
run: mvn clean install -DskipTests=true -B
56+
57+
# Run Test Maven
58+
- name: Run unit tests
4359
uses: GabrielBB/xvfb-action@v1
4460
with:
45-
run: mvn clean verify -U -fae -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true --quiet
61+
run: mvn verify -U -fae -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true
4662

4763
# Archive artifacts to be applied in Publish Reports workflow
4864
- name: Archiving test artifacts
@@ -53,3 +69,4 @@ jobs:
5369
*tests/*/target/surefire-reports/
5470
*/*tests/*/target/surefire-reports/
5571
**/*.log
72+
**/*.png

0 commit comments

Comments
 (0)