Refactor UI tests workflow: remove redundant test matrix parameter, simplify job naming, adjust artifact naming, and update UI platform build version.

This commit is contained in:
Jonathan Gafner 2025-08-16 12:06:42 +03:00
parent 369aca6ca5
commit 3593822ae7
2 changed files with 7 additions and 8 deletions

View File

@ -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

View File

@ -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