|
| 1 | +# This workflow will build a Java project with Gradle |
| 2 | +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle |
| 3 | + |
| 4 | +name: Java CI with Gradle - dialogs.information, dialogs.settings ULTIMATE |
| 5 | + |
| 6 | +on: |
| 7 | + workflow_run: |
| 8 | + workflows: [ "Java CI with Gradle - dialogs.information, dialogs.settings" ] |
| 9 | + types: |
| 10 | + - completed |
| 11 | + |
| 12 | +jobs: |
| 13 | + build-linux: |
| 14 | + runs-on: ubuntu-latest |
| 15 | + |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v2 |
| 18 | + - name: Set up JDK 17 |
| 19 | + uses: actions/setup-java@v1 |
| 20 | + with: |
| 21 | + java-version: 17 |
| 22 | + - name: Run integration tests |
| 23 | + env: |
| 24 | + GPG_PASSPHRASE: ${{ secrets.IDEA_KEY_PASSPHRASE }} |
| 25 | + run: | |
| 26 | + echo -n "$GPG_PASSPHRASE" | gpg --decrypt --passphrase-fd 0 --pinentry-mode loopback --output src/test-project/idea_license_token/idea.key src/test-project/idea_license_token/idea.key.gpg |
| 27 | + export DISPLAY=:99.0 |
| 28 | + Xvfb -ac :99 -screen 0 1920x1080x24 & |
| 29 | + sleep 10 |
| 30 | + cd src/test-project |
| 31 | + chmod +x gradlew |
| 32 | + ./gradlew clean integrationUITestUltimate --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.* |
| 33 | + - uses: actions/upload-artifact@v2 |
| 34 | + with: |
| 35 | + name: ${{ runner.os }}-test-reports |
| 36 | + path: src/test-project/build/reports/tests/test |
| 37 | + if: always() |
| 38 | + - name: Archiving screenshots |
| 39 | + uses: actions/upload-artifact@v2 |
| 40 | + with: |
| 41 | + name: ${{ runner.os }}-screenshots |
| 42 | + path: src/test-project/build/screenshots/* |
| 43 | + if: always() |
| 44 | + - name: Archiving StepLogger logs |
| 45 | + uses: actions/upload-artifact@v2 |
| 46 | + with: |
| 47 | + name: ${{ runner.os }}-steplogger-logs |
| 48 | + path: src/test-project/build/test-results/* |
| 49 | + if: always() |
| 50 | + |
| 51 | + |
| 52 | + build-macos: |
| 53 | + runs-on: macos-11 |
| 54 | + |
| 55 | + steps: |
| 56 | + - uses: actions/checkout@v2 |
| 57 | + - name: Set up JDK 17 |
| 58 | + uses: actions/setup-java@v1 |
| 59 | + with: |
| 60 | + java-version: 17 |
| 61 | + - name: Run integration tests |
| 62 | + env: |
| 63 | + GPG_PASSPHRASE: ${{ secrets.IDEA_KEY_PASSPHRASE }} |
| 64 | + run: | |
| 65 | + echo -n "$GPG_PASSPHRASE" | gpg --decrypt --passphrase-fd 0 --pinentry-mode loopback --output src/test-project/idea_license_token/idea.key src/test-project/idea_license_token/idea.key.gpg |
| 66 | + export DISPLAY=:99.0 |
| 67 | + Xvfb -ac :99 -screen 0 1920x1080x24 & |
| 68 | + sleep 10 |
| 69 | + cd src/test-project |
| 70 | + chmod +x gradlew |
| 71 | + ./gradlew clean integrationUITestUltimate --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.* |
| 72 | + - uses: actions/upload-artifact@v2 |
| 73 | + with: |
| 74 | + name: ${{ runner.os }}-test-reports |
| 75 | + path: src/test-project/build/reports/tests/test |
| 76 | + if: always() |
| 77 | + - name: Archiving screenshots |
| 78 | + uses: actions/upload-artifact@v2 |
| 79 | + with: |
| 80 | + name: ${{ runner.os }}-screenshots |
| 81 | + path: src/test-project/build/screenshots/* |
| 82 | + if: always() |
| 83 | + - name: Archiving StepLogger logs |
| 84 | + uses: actions/upload-artifact@v2 |
| 85 | + with: |
| 86 | + name: ${{ runner.os }}-steplogger-logs |
| 87 | + path: src/test-project/build/test-results/* |
| 88 | + if: always() |
| 89 | + |
| 90 | + |
| 91 | + build-windows: |
| 92 | + runs-on: windows-latest |
| 93 | + |
| 94 | + steps: |
| 95 | + - uses: actions/checkout@v2 |
| 96 | + - name: Set up JDK 17 |
| 97 | + uses: actions/setup-java@v1 |
| 98 | + with: |
| 99 | + java-version: 17 |
| 100 | + - name: Run integration tests |
| 101 | + env: |
| 102 | + GPG_PASSPHRASE: ${{ secrets.IDEA_KEY_PASSPHRASE }} |
| 103 | + run: | |
| 104 | + echo -n "$GPG_PASSPHRASE" | gpg --decrypt --passphrase-fd 0 --pinentry-mode loopback --output src\test-project\idea_license_token\idea.key src\test-project\idea_license_token\idea.key.gpg |
| 105 | + export DISPLAY=:99.0 |
| 106 | + Xvfb -ac :99 -screen 0 1920x1080x24 & |
| 107 | + sleep 10 |
| 108 | + cd src\test-project |
| 109 | + chmod +x gradlew.bat |
| 110 | + .\gradlew.bat clean integrationUITestUltimate --warning-mode none --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.information.* --tests com.redhat.devtools.intellij.commonuitest.fixtures.test.dialogs.settings.* |
| 111 | + shell: powershell |
| 112 | + - uses: actions/upload-artifact@v2 |
| 113 | + with: |
| 114 | + name: ${{ runner.os }}-test-reports |
| 115 | + path: src\test-project\build\reports\tests\test |
| 116 | + if: always() |
| 117 | + - name: Archiving screenshots |
| 118 | + uses: actions/upload-artifact@v2 |
| 119 | + with: |
| 120 | + name: ${{ runner.os }}-screenshots |
| 121 | + path: src\test-project\build\screenshots\* |
| 122 | + if: always() |
| 123 | + - name: Archiving StepLogger logs |
| 124 | + uses: actions/upload-artifact@v2 |
| 125 | + with: |
| 126 | + name: ${{ runner.os }}-steplogger-logs |
| 127 | + path: src\test-project\build\test-results\* |
| 128 | + if: always() |
0 commit comments