From 3593822ae7956b296a5d79c6f4c3f4fcb50bed06 Mon Sep 17 00:00:00 2001 From: Jonathan Gafner Date: Sat, 16 Aug 2025 12:06:42 +0300 Subject: [PATCH] Refactor UI tests workflow: remove redundant test matrix parameter, simplify job naming, adjust artifact naming, and update UI platform build version. --- .github/template-cleanup/gradle.properties | 2 ++ .github/workflows/run-ui-tests.yml | 13 +++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/template-cleanup/gradle.properties b/.github/template-cleanup/gradle.properties index d24813f..2f67f1d 100644 --- a/.github/template-cleanup/gradle.properties +++ b/.github/template-cleanup/gradle.properties @@ -12,6 +12,8 @@ pluginSinceBuild = 243 # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension platformType = IC platformVersion = 2024.3.6 +# Intellij Platform UI Platform Build Version -> https://plugins.jetbrains.com/docs/intellij/integration-tests-ui.html +uiPlatformBuildVersion=243.26574.91 # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP diff --git a/.github/workflows/run-ui-tests.yml b/.github/workflows/run-ui-tests.yml index 82433fe..58b3f02 100644 --- a/.github/workflows/run-ui-tests.yml +++ b/.github/workflows/run-ui-tests.yml @@ -14,7 +14,7 @@ on: jobs: # UI Test Jobs (one per OS/test combination) testUI: - name: Run UI Test (${{ matrix.osName }} - ${{ matrix.test }}) + name: Run UI Test on ${{ matrix.osName }} runs-on: ${{ matrix.runner }} permissions: contents: write @@ -27,11 +27,9 @@ jobs: # Linux test - runner: ubuntu-latest osName: Linux - test: org.jetbrains.plugins.template.ui.MyProjectUITest # macOS test - runner: macos-latest osName: macOS - test: org.jetbrains.plugins.template.ui.MyProjectUITest steps: - name: Fetch Sources @@ -62,16 +60,15 @@ jobs: echo "DISPLAY=:99.0" >> $GITHUB_ENV # Run UI test with IDE Starter framework - - name: Run UI Test ${{ matrix.test }} + - name: Run UI Test env: CODECOV_API_TOKEN: ${{ secrets.CODECOV_API_TOKEN }} LICENSE_KEY: ${{ secrets.LICENSE_KEY }} UI_BRANCH_NAME: "${{ matrix.osName }}-${{ github.ref_name }}" DISPLAY: ${{ runner.os == 'Linux' && ':99.0' || '' }} run: | - echo "Running UI test ${{ matrix.test }} on ${{ matrix.osName }}" echo "UI on ${{ matrix.osName }} run #: ${{ github.run_number }} and id: ${{ github.run_id }}" - ./gradlew uiTest --tests "${{ matrix.test }}" --info + ./gradlew uiTest timeout-minutes: 30 # List build directory for debugging @@ -92,7 +89,7 @@ jobs: if: always() uses: actions/upload-artifact@v4.6.2 with: - name: tests-result-${{ matrix.test }}-${{ matrix.osName }} + name: tests-result-${{ matrix.osName }} path: | build/reports/ build/test-results/ @@ -108,7 +105,7 @@ jobs: if: always() uses: actions/upload-artifact@v4.6.2 with: - name: test-report-${{ matrix.test }}-${{ matrix.osName }} + name: test-report-${{ matrix.osName }} path: ${{ github.workspace }}/build/test-results/uiTest/*.xml # Test report job using dorny/test-reporter