Update dependency com.diffplug.spotless to v6.25.0 (#103) #329
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: Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
os: [ windows-latest, ubuntu-latest, macos-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- name: Cache Build files | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.konan | |
~/.gradle | |
%USERPROFILE%\.konan | |
%USERPROFILE%\.gradle | |
key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }} | |
- uses: gradle/gradle-build-action@v3 | |
name: Test Windows Target | |
if: ${{ startsWith(matrix.os, 'windows') }} | |
with: | |
arguments: windowsTest | |
- uses: gradle/gradle-build-action@v3 | |
name: Test Apple Targets | |
if: ${{ startsWith(matrix.os, 'macos') }} | |
with: | |
arguments: macosX64Test | |
- uses: gradle/gradle-build-action@v3 | |
name: Test Linux Target | |
if: ${{ startsWith(matrix.os, 'ubuntu') }} | |
with: | |
arguments: linuxX64Test | |
- uses: gradle/gradle-build-action@v3 | |
name: Test JVM Target | |
with: | |
arguments: jvmTest | |
- name: Publish Test Reports | |
uses: mikepenz/action-junit-report@v4 | |
if: always() | |
with: | |
report_paths: 'build/test-results/**/TEST-*.xml' | |
- name: Archive test reports | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: test-reports | |
path: build/reports/tests/**/** |