build(deps): bump org.junit.platform:junit-platform-launcher from 1.11.4 to 1.12.0 #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inspiration: | |
# - https://github.com/JetBrains/intellij-ui-test-robot/blob/139a05eb99e9a49f13605626b81ad9864be23c96/.github/workflows/runTest.yml | |
# - https://github.com/redhat-developer/intellij-quarkus/blob/efc6c6afa78f28b95f55f8c0f71e6585200e7e9d/.github/workflows/itests.yml | |
name: UI Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
run-ui-test: | |
name: run tests for ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
runIde: | | |
export DISPLAY=:99.0 | |
Xvfb -ac :99 -screen 0 1920x1080x24 & | |
sleep 10 | |
mkdir -p build/reports | |
./gradlew runIdeForUiTests > build/reports/idea.log & | |
runTests: | | |
export DISPLAY=:99.0 | |
./gradlew testUI | |
url: http://127.0.0.1:8082 | |
reportName: ui-test-fails-report-linux | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4.1.5 | |
- name: Setup Java | |
uses: actions/setup-java@v4.5.0 | |
with: | |
distribution: zulu | |
java-version: 17 | |
- name: Clean | |
run: ./gradlew clean | |
- name: Run Idea | |
run: ${{ matrix.runIde }} | |
- name: Wait for Idea started | |
uses: jtalk/url-health-check-action@v3 | |
with: | |
url: ${{ matrix.url }} | |
max-attempts: 15 | |
retry-delay: 30s | |
- name: Run tests | |
run: ${{ matrix.runTests }} | |
- name: Move video | |
if: ${{ failure() }} | |
run: mv video build/reports | |
- name: Copy logs | |
if: ${{ failure() }} | |
run: mv build/idea-sandbox/system/log/ build/reports | |
- name: Save fails report | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.reportName }} | |
path: | | |
build/reports |