Skip to content

Add CI Checks for Kotlin #8

Add CI Checks for Kotlin

Add CI Checks for Kotlin #8

Workflow file for this run

name: Kotlin Continuous Integration Checks
on: [push, pull_request]
jobs:
lint-kotlin:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11
- name: Run ktlintCheck on ldk-node-jvm
run: |
cd bindings/kotlin/ldk-node-jvm
./gradlew ktlintCheck
- name: Run ktlintCheck on ldk-node-android
run: |
cd bindings/kotlin/ldk-node-android
./gradlew ktlintCheck
- name: Start bitcoin and electrs
run: |
cd bindings/kotlin/ldk-node-jvm/lib
docker compose up -d
- name: Generate Kotlin
run: |
./scripts/uniffi_bindgen_generate_kotlin.sh
- name: Run Kotlin tests
run: |
cd bindings/kotlin/ldk-node-jvm
./gradlew test