Skip to content

Commit 46b8e90

Browse files
committed
Update Gradle CI script for UI tests and test execution
Change Xvfb screen depth to 24-bit for better compatibility and added a delay to ensure proper initialization. Updated test execution step to set DISPLAY environment variable on Ubuntu.
1 parent a3c4272 commit 46b8e90

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
- os: ubuntu-latest
1919
runIde: |
2020
export DISPLAY=:99.0
21-
Xvfb -ac :99 -screen 0 1920x1080x16 &
21+
Xvfb -ac :99 -screen 0 1920x1080x24 &
22+
sleep 10
2223
./gradlew runIdeForUiTests &
2324
- os: windows-latest
2425
runIde: start gradlew.bat runIdeForUiTests
@@ -56,7 +57,9 @@ jobs:
5657

5758
# Run tests
5859
- name: Tests
59-
run: ./gradlew test
60+
run: |
61+
export DISPLAY=:99.0
62+
./gradlew test
6063
6164
- name: Capture Test Artifacts on Failure
6265
if: failure() && matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)