mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
GitHub Actions: Run UI Tests workflow cleanup
This commit is contained in:
parent
c38e14a201
commit
a87f931dbe
107
.github/workflows/run-ui-tests.yml
vendored
107
.github/workflows/run-ui-tests.yml
vendored
@ -1,84 +1,55 @@
|
|||||||
# GitHub Actions Workflow created for launching UI tests on linux, windows and mac in following steps:
|
# GitHub Actions Workflow created for launching UI tests on Linux, Windows, and Mac in the following steps:
|
||||||
# - prepare and launch Idea with your plugin and robot-server plugin which is need to interact with UI
|
# - prepare and launch Idea with your plugin and robot-server plugin, which is need to interact with UI
|
||||||
# - wait for the Idea started
|
# - wait for the Idea started
|
||||||
# - run UI tests with separate gradle task
|
# - run UI tests with separate Gradle task
|
||||||
|
#
|
||||||
# Please check https://github.com/JetBrains/intellij-ui-test-robot for information about UI tests with IntelliJ Idea
|
# Please check https://github.com/JetBrains/intellij-ui-test-robot for information about UI tests with IntelliJ IDEA.
|
||||||
|
#
|
||||||
# Workflow is triggered manually.
|
# Workflow is triggered manually.
|
||||||
|
|
||||||
name: Run UI Tests
|
name: Run UI Tests
|
||||||
on:
|
on:
|
||||||
workflow_dispatch
|
workflow_dispatch
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-for-ui-test-linux:
|
|
||||||
runs-on: ubuntu-latest
|
testUI:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
runIde: |
|
||||||
|
export DISPLAY=:99.0
|
||||||
|
Xvfb -ac :99 -screen 0 1920x1080x16 &
|
||||||
|
gradle runIdeForUiTests &
|
||||||
|
- os: windows-latest
|
||||||
|
runIde: start gradlew.bat runIdeForUiTests
|
||||||
|
- os: macos-latest
|
||||||
|
runIde: ./gradlew runIdeForUiTests &
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
# Setup Java 1.8 environment for the next steps
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
distribution: zulu
|
||||||
|
java-version: 8
|
||||||
|
|
||||||
|
# Check out current repository
|
||||||
|
- name: Fetch Sources
|
||||||
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
# Run IDEA prepared for UI testing
|
# Run IDEA prepared for UI testing
|
||||||
- name: Run Idea
|
- name: Run IDE
|
||||||
run: |
|
run: ${{ matrix.runIde }}
|
||||||
export DISPLAY=:99.0
|
|
||||||
Xvfb -ac :99 -screen 0 1920x1080x16 &
|
# Wait for IDEA to be started
|
||||||
gradle runIdeForUiTests &
|
- name: Health Check
|
||||||
- name: Wait for Idea started
|
uses: jtalk/url-health-check-action@v1.5
|
||||||
uses: jtalk/url-health-check-action@v1.4
|
|
||||||
with:
|
with:
|
||||||
url: http://127.0.0.1:8082
|
url: http://127.0.0.1:8082
|
||||||
max-attempts: 15
|
max-attempts: 15
|
||||||
retry-delay: 30s
|
retry-delay: 30s
|
||||||
|
|
||||||
# Run tests
|
|
||||||
- name: Tests
|
|
||||||
run: ./gradlew test
|
|
||||||
|
|
||||||
build-for-ui-test-mac-os:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Setup Java
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: 11
|
|
||||||
|
|
||||||
# Run IDEA prepared for UI testing
|
|
||||||
- name: Run Idea
|
|
||||||
run: ./gradlew runIdeForUiTests &
|
|
||||||
- name: Wait for Idea started
|
|
||||||
uses: jtalk/url-health-check-action@v1.4
|
|
||||||
with:
|
|
||||||
url: http://127.0.0.1:8082
|
|
||||||
max-attempts: 15
|
|
||||||
retry-delay: 30s
|
|
||||||
|
|
||||||
# Run tests
|
|
||||||
- name: Tests
|
|
||||||
run: ./gradlew test
|
|
||||||
|
|
||||||
build-for-ui-test-windows:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Setup Java
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: 11
|
|
||||||
|
|
||||||
# Run IDEA prepared for UI testing
|
|
||||||
- name: Run Idea
|
|
||||||
run: start gradlew.bat runIdeForUiTests
|
|
||||||
- name: Wait for Idea started
|
|
||||||
uses: jtalk/url-health-check-action@v1.4
|
|
||||||
with:
|
|
||||||
url: http://127.0.0.1:8082
|
|
||||||
max-attempts: 15
|
|
||||||
retry-delay: 30s
|
|
||||||
|
|
||||||
# Run tests
|
|
||||||
- name: Tests
|
|
||||||
run: gradle test
|
|
@ -69,7 +69,7 @@ detekt {
|
|||||||
// Read more: https://github.com/JetBrains/intellij-ui-test-robot
|
// Read more: https://github.com/JetBrains/intellij-ui-test-robot
|
||||||
tasks {
|
tasks {
|
||||||
withType<DownloadRobotServerPluginTask> {
|
withType<DownloadRobotServerPluginTask> {
|
||||||
version = "0.10.3"
|
version.set("0.10.3")
|
||||||
}
|
}
|
||||||
|
|
||||||
withType<RunIdeForUiTestTask> {
|
withType<RunIdeForUiTestTask> {
|
||||||
|
Loading…
Reference in New Issue
Block a user