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

Commit

Permalink
Add SWT_GTK3=0 env. var
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Dockal <odockal@redhat.com>
  • Loading branch information
odockal committed Sep 8, 2021
1 parent 62f8409 commit 5df84d9
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches: [master]

env:
SWT_GTK3: "0"

jobs:
test:
runs-on: ${{ matrix.os }} # compiles and test on Ubuntu
Expand Down Expand Up @@ -38,11 +41,24 @@ jobs:
restore-keys: |
reddeer-${{ runner.os }}-maven-
- name: Install WebKit on linux
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update -y
sudo apt-get install libwebkit2gtk-4.0-37
- name: Echo SWT_GTK3 Env. variable
run: echo "SWT_GTK3 is set to '${SWT_GTK3}'"

# Build and compile using Maven
- name: Build/Compile and run unit tests
- name: Build and compile
run: mvn clean install -DskipTests=true -B

# Run Test Maven
- name: Run unit tests
uses: GabrielBB/xvfb-action@v1
with:
run: mvn clean verify -U -fae -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true --quiet
run: mvn verify -U -fae -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true

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

0 comments on commit 5df84d9

Please sign in to comment.