V1.0.0 rc.2 #30
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: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test-jvm: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: corretto | |
java-version: 17 | |
cache: 'gradle' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Run 'jvmTest' | |
run: ./gradlew jvmTest | |
- name: Run 'testDebugUnitTest' | |
run: ./gradlew testDebugUnitTest | |
test-snipptes: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: corretto | |
java-version: 17 | |
cache: 'gradle' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Check Snippets | |
run: ./gradlew checkSnippets | |
test-native: | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: corretto | |
java-version: 17 | |
cache: 'gradle' | |
- name: Cache Kotlin Native | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.konan | |
key: ${{ runner.os }}-konan | |
restore-keys: ${{ runner.os }}-konan | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Run Native Tests | |
run: ./gradlew macosArm64Test macosX64Test |