Merge pull request #111 from orangain/dependabot/gradle/multiplatform… #314
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: Java CI | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# See: https://adoptium.net/temurin/releases/ | |
java: [ 8, 11, 17, 20 ] | |
# See: https://github.com/JetBrains/kotlin/releases | |
kotlin: [ v1.7.22, v1.8.21 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- uses: actions/checkout@v3 | |
with: | |
repository: JetBrains/kotlin | |
path: kotlin | |
ref: ${{ matrix.kotlin }} | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build | |
env: | |
KOTLIN_REPO: ${{ github.workspace }}/kotlin | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v3 | |
if: success() || failure() # always run even if the previous step fails | |
with: | |
report_paths: '**/build/test-results/test/TEST-*.xml' | |
check_name: Test Report (${{ matrix.java }}, ${{ matrix.kotlin }}) |