Merge pull request #71 from batoulapps/fix_build #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: KMP Pull Request | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
validate: | |
strategy: | |
matrix: | |
os: [ macOS-latest, ubuntu-latest ] | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.version }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
- name: Run tests for Linux, JVM, and Javascript | |
if: matrix.os == 'ubuntu-latest' | |
run: ./gradlew linuxX64Test jvmTest jsTest | |
- name: Run test on iOS | |
if: matrix.os == 'macOS-latest' | |
run: ./gradlew iosX64Test macOSX64Test | |
- uses: codecov/codecov-action@v3 | |
if: matrix.os == 'ubuntu-latest' |