Skip to content

Commit b4337c5

Browse files
committed
chore: fix integration tests
Signed-off-by: Stephane Bouchet <[email protected]>
1 parent 2863db6 commit b4337c5

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,25 @@ jobs:
4444
cache: 'gradle'
4545
- name: Run integration tests
4646
run: |
47-
export DISPLAY=:99.0
48-
Xvfb -ac :99 -screen 0 1920x1080x24 &
49-
cd src/test-project
50-
chmod +x gradlew
51-
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.utils.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.idestatusbar.*
47+
if [ "$RUNNER_OS" == "Linux" ]; then
48+
export DISPLAY=:99.0
49+
Xvfb -ac :99 -screen 0 1920x1080x24 &
50+
cd src/test-project
51+
chmod +x gradlew
52+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.utils.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.idestatusbar.*
53+
elif [ "$RUNNER_OS" == "Windows" ]; then
54+
cd src\test-project
55+
chmod +x gradlew.bat
56+
.\gradlew.bat clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.utils.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.mainidewindow.idestatusbar.*
57+
elif [ "$RUNNER_OS" == "macOS" ]; then
58+
cd src/test-project
59+
chmod +x gradlew
60+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.utils.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.mainidewindow.idestatusbar.*
61+
else
62+
echo "$RUNNER_OS not supported"
63+
exit 1
64+
fi
65+
shell: bash
5266
- uses: actions/upload-artifact@v4
5367
with:
5468
name: ${{ matrix.os }}-mainidewindow.idestatusbar-test-reports

src/test-project/.intellijPlatform/self-update.lock

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)