Add CI Checks for Kotlin #9
Workflow file for this run
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: 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: Generate Kotlin | |
run: | | |
./scripts/uniffi_bindgen_generate_kotlin.sh | |
- name: Start bitcoin and electrs | |
run: | | |
cd bindings/kotlin/ldk-node-jvm/lib | |
docker compose up -d | |
- name: Run Kotlin tests | |
run: | | |
cd bindings/kotlin/ldk-node-jvm | |
./gradlew test |