mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2025-12-05 06:11:52 +00:00
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:
parent
369aca6ca5
commit
3593822ae7
2
.github/template-cleanup/gradle.properties
vendored
2
.github/template-cleanup/gradle.properties
vendored
@ -12,6 +12,8 @@ pluginSinceBuild = 243
|
|||||||
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
|
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
|
||||||
platformType = IC
|
platformType = IC
|
||||||
platformVersion = 2024.3.6
|
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
|
# 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
|
# Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP
|
||||||
|
|||||||
13
.github/workflows/run-ui-tests.yml
vendored
13
.github/workflows/run-ui-tests.yml
vendored
@ -14,7 +14,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
# UI Test Jobs (one per OS/test combination)
|
# UI Test Jobs (one per OS/test combination)
|
||||||
testUI:
|
testUI:
|
||||||
name: Run UI Test (${{ matrix.osName }} - ${{ matrix.test }})
|
name: Run UI Test on ${{ matrix.osName }}
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -27,11 +27,9 @@ jobs:
|
|||||||
# Linux test
|
# Linux test
|
||||||
- runner: ubuntu-latest
|
- runner: ubuntu-latest
|
||||||
osName: Linux
|
osName: Linux
|
||||||
test: org.jetbrains.plugins.template.ui.MyProjectUITest
|
|
||||||
# macOS test
|
# macOS test
|
||||||
- runner: macos-latest
|
- runner: macos-latest
|
||||||
osName: macOS
|
osName: macOS
|
||||||
test: org.jetbrains.plugins.template.ui.MyProjectUITest
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch Sources
|
- name: Fetch Sources
|
||||||
@ -62,16 +60,15 @@ jobs:
|
|||||||
echo "DISPLAY=:99.0" >> $GITHUB_ENV
|
echo "DISPLAY=:99.0" >> $GITHUB_ENV
|
||||||
|
|
||||||
# Run UI test with IDE Starter framework
|
# Run UI test with IDE Starter framework
|
||||||
- name: Run UI Test ${{ matrix.test }}
|
- name: Run UI Test
|
||||||
env:
|
env:
|
||||||
CODECOV_API_TOKEN: ${{ secrets.CODECOV_API_TOKEN }}
|
CODECOV_API_TOKEN: ${{ secrets.CODECOV_API_TOKEN }}
|
||||||
LICENSE_KEY: ${{ secrets.LICENSE_KEY }}
|
LICENSE_KEY: ${{ secrets.LICENSE_KEY }}
|
||||||
UI_BRANCH_NAME: "${{ matrix.osName }}-${{ github.ref_name }}"
|
UI_BRANCH_NAME: "${{ matrix.osName }}-${{ github.ref_name }}"
|
||||||
DISPLAY: ${{ runner.os == 'Linux' && ':99.0' || '' }}
|
DISPLAY: ${{ runner.os == 'Linux' && ':99.0' || '' }}
|
||||||
run: |
|
run: |
|
||||||
echo "Running UI test ${{ matrix.test }} on ${{ matrix.osName }}"
|
|
||||||
echo "UI on ${{ matrix.osName }} run #: ${{ github.run_number }} and id: ${{ github.run_id }}"
|
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
|
timeout-minutes: 30
|
||||||
|
|
||||||
# List build directory for debugging
|
# List build directory for debugging
|
||||||
@ -92,7 +89,7 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4.6.2
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: tests-result-${{ matrix.test }}-${{ matrix.osName }}
|
name: tests-result-${{ matrix.osName }}
|
||||||
path: |
|
path: |
|
||||||
build/reports/
|
build/reports/
|
||||||
build/test-results/
|
build/test-results/
|
||||||
@ -108,7 +105,7 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4.6.2
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: test-report-${{ matrix.test }}-${{ matrix.osName }}
|
name: test-report-${{ matrix.osName }}
|
||||||
path: ${{ github.workspace }}/build/test-results/uiTest/*.xml
|
path: ${{ github.workspace }}/build/test-results/uiTest/*.xml
|
||||||
|
|
||||||
# Test report job using dorny/test-reporter
|
# Test report job using dorny/test-reporter
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user