Update jvm target in build.gradle.kts #3
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: Samples | |
on: | |
push: | |
paths: | |
- 'samples/**' | |
pull_request: | |
paths: | |
- 'samples/**' | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
java_version: [ 11, 17 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Set up JDK ${{ matrix.java_version }}" | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java_version }} | |
cache: 'gradle' | |
- name: Cache maven dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: samples-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
samples-${{ runner.os }}-maven- | |
- name: build js sample | |
run: ./gradlew build | |
working-directory: samples\js\kotlin-test | |
- name: build Spek sample | |
run: ./gradlew build | |
working-directory: samples\jvm\spek | |
- name: build Junit5 sample | |
run: ./gradlew build | |
working-directory: samples\jvm\junit5 | |
- name: build MPP sample | |
run: ./gradlew build | |
working-directory: samples\multiplatform\kotlin-test | |
- name: build maven sample | |
run: ./mvnw -B clean verify | |
working-directory: samples\jvm\maven | |
- name: build kotest sample | |
run: ./gradlew build | |
working-directory: samples\jvm\kotest |