JetBrains_intellij-platform.../.github/workflows/run-ui-tests.yml
dependabot[bot] 9c1419aae2 Bump jtalk/url-health-check-action from 1.5 to 2
Bumps [jtalk/url-health-check-action](https://github.com/jtalk/url-health-check-action) from 1.5 to 2.
- [Release notes](https://github.com/jtalk/url-health-check-action/releases)
- [Commits](https://github.com/jtalk/url-health-check-action/compare/v1.5...v2)

---
updated-dependencies:
- dependency-name: jtalk/url-health-check-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-16 14:31:37 +01:00

61 lines
1.6 KiB
YAML

# 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
# - wait for the Idea started
# - 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.
#
# Workflow is triggered manually.
name: Run UI Tests
on:
workflow_dispatch
jobs:
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:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v2.3.4
# Setup Java 11 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 11
cache: gradle
# Run IDEA prepared for UI testing
- name: Run IDE
run: ${{ matrix.runIde }}
# Wait for IDEA to be started
- name: Health Check
uses: jtalk/url-health-check-action@v2
with:
url: http://127.0.0.1:8082
max-attempts: 15
retry-delay: 30s
# Run tests
- name: Tests
run: ./gradlew test