Skip to content

Commit

Permalink
proper gradle build for ui
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed Apr 7, 2024
1 parent 96a125d commit ecaf396
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/root_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
tests:
strategy:
matrix:
os: [ ubuntu-latest ]
gradle-properties-version: [ 232, 233 ]
os: [ ubuntu-latest ]

runs-on: ${{ matrix.os }}
env:
Expand Down
43 changes: 25 additions & 18 deletions .github/workflows/ui_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,43 @@ jobs:
./gradlew :ui-tests:test
url: http://127.0.0.1:8082
reportName: ui-tests-fails-report-linux
# - os: macOS-latest
# runIde: ./gradlew :ui-tests:runIdeForUiTests &
# runTests: ./gradlew :ui-tests:test
# url: http://127.0.0.1:8082
# reportName: ui-test-fails-report-mac
# - os: windows-latest
# runIde: start gradlew.bat :ui-tests:runIdeForUiTests
# runTests: ./gradlew :ui-tests:test
# url: http://localhost:8082
# reportName: ui-test-fails-report-windows
# - os: macOS-latest
# runIde: ./gradlew :ui-tests:runIdeForUiTests &
# runTests: ./gradlew :ui-tests:test
# url: http://127.0.0.1:8082
# reportName: ui-test-fails-report-mac
# - os: windows-latest
# runIde: start gradlew.bat :ui-tests:runIdeForUiTests
# runTests: ./gradlew :ui-tests:test
# url: http://localhost:8082
# reportName: ui-test-fails-report-windows

runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]

- name: Setup Java
uses: actions/[email protected]
with:
distribution: zulu
java-version: 17

- name: Setup FFmpeg
uses: FedericoCarboni/setup-ffmpeg@v2
with:
# Not strictly necessary, but it may prevent rate limit
# errors especially on GitHub-hosted macos machines.
token: ${{ secrets.GITHUB_TOKEN }}

- name: Clean
run: ./gradlew :ui-tests:clean
- name: Setup Java
uses: actions/[email protected]
with:
distribution: zulu
java-version: 17

- name: Build
uses: gradle/[email protected]
with:
gradle-version: wrapper
arguments: "assemble testClasses -Pkotlin.incremental=false --no-daemon --stacktrace"
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/modules-2/files-2.1/com.jetbrains.intellij.clion
- name: Run Idea
run: ${{ matrix.runIde }}
Expand Down

0 comments on commit ecaf396

Please sign in to comment.