aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/tests-thorough.yml
blob: 9c4679b26bfb2ad8a5032bc6b193c587fdff174a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Test [thorough]

on:
  workflow_dispatch:
  push:
    branches:
      - master

jobs:
  test-matrix:
    strategy:
      matrix:
        os: [ ubuntu-latest, windows-latest, macos-latest ]
        javaVersion: [ 8, 11, 17 ]
      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
      - 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 clean test --stacktrace --no-daemon --no-parallel 
          "-Dorg.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=500m"
          "-Porg.jetbrains.dokka.javaToolchain.testLauncher=${{ matrix.javaVersion }}"
      - name: Run tests under Ubuntu/Macos
        if: matrix.os != 'windows-latest'
        run: >
          ./gradlew clean test --stacktrace 
          "-Porg.jetbrains.dokka.javaToolchain.testLauncher=${{ matrix.javaVersion }}"