Refactor project structure and introduce composite builds #440
Workflow file for this run
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
name: Test [smoke] | |
on: pull_request | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
env: | |
JAVA_TEST_VERSION: 11 | |
jobs: | |
test-matrix: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
cache: 'maven' | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-home-cache-cleanup: true | |
arguments: clean | |
- name: Run tests under Windows | |
if: matrix.os == 'windows-latest' | |
# Running tests with the Gradle daemon on windows agents leads to some very strange | |
# JVM crashes for some reason. Most likely a problem of Gradle/GitHub/Windows server | |
run: > | |
./gradlew test --stacktrace --no-daemon --no-parallel | |
"-Dorg.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=500m" | |
"-Porg.jetbrains.dokka.javaToolchain.testLauncher=${{ env.JAVA_TEST_VERSION }}" | |
- name: Run tests under Ubuntu | |
if: matrix.os != 'windows-latest' | |
run: > | |
./gradlew test --stacktrace | |
"-Porg.jetbrains.dokka.javaToolchain.testLauncher=${{ env.JAVA_TEST_VERSION }}" |