Skip to content

Commit c721deb

Browse files
committed
chore: fix integration tests
Signed-off-by: Stephane Bouchet <[email protected]>
1 parent 2b07ad6 commit c721deb

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,26 +42,26 @@ jobs:
4242
java-version: 17
4343
distribution: 'temurin'
4444
cache: 'gradle'
45-
- name: Run integration tests
45+
- name: Run integration tests on Linux
4646
run: |
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
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.*
52+
if: runner.os == 'Linux'
53+
- name: Run integration tests on Windows
54+
run: |
55+
cd src\test-project
56+
chmod +x gradlew.bat
57+
.\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.*
58+
if: runner.os == 'Windows'
59+
- name: Run integration tests on MacOs
60+
run: |
61+
cd src/test-project
62+
chmod +x gradlew
63+
./gradlew clean integrationUITest --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.utils.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.mainidewindow.mainidewindow.idestatusbar.*
64+
if: runner.os == 'macOS'
6565
- uses: actions/upload-artifact@v4
6666
with:
6767
name: ${{ matrix.os }}-mainidewindow.idestatusbar-test-reports

0 commit comments

Comments
 (0)