diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..5e297c1 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,39 @@ +name: Test Kotlin/JVM +on: + workflow_dispatch: + push: + pull_request: + +permissions: {} + +jobs: + build: + runs-on: ubuntu-24.04 + steps: + - name: "Check out PR branch" + uses: actions/checkout@v4 + with: + submodules: recursive + persist-credentials: false + fetch-depth: 0 + + - name: "Cache" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + ./target + key: ${{ runner.os }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} + + - name: "Set up JDK" + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + + - name: "Run JVM tests" + run: | + bash ./scripts/build-linux-x86_64.sh + ./gradlew test -P excludeConnectedTests + ./gradlew :examples:build