-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1aed530
commit 2d09ed8
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Continuous Integration Checks - Kotlin | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
check-kotlin: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
LDK_NODE_JVM_DIR: bindings/kotlin/ldk-node-jvm | ||
LDK_NODE_ANDROID_DIR: bindings/kotlin/ldk-node-android | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
|
||
- name: Run ktlintCheck on ldk-node-jvm | ||
run: | | ||
cd $LDK_NODE_JVM_DIR | ||
./gradlew ktlintCheck | ||
- name: Run ktlintCheck on ldk-node-android | ||
run: | | ||
cd $LDK_NODE_ANDROID_DIR | ||
./gradlew ktlintCheck | ||
- name: Generate Kotlin JVM | ||
run: ./scripts/uniffi_bindgen_generate_kotlin.sh | ||
|
||
- name: Start bitcoin and electrs | ||
run: docker compose up -d | ||
|
||
- name: Run ldk-node-jvm tests | ||
run: | | ||
cd $LDK_NODE_JVM_DIR | ||
./gradlew test | ||
env: | ||
BITCOIN_CLI_BIN: "docker exec ldk-node-bitcoin-1" | ||
BITCOIND_RPC_USER: "user" | ||
BITCOIND_RPC_PASSWORD: "pass" | ||
ESPLORA_ENDPOINT: "http://127.0.0.1:3002" | ||
|
||
- name: Run ldk-node-android tests | ||
run: | | ||
cd $LDK_NODE_ANDROID_DIR | ||
./gradlew test |