Skip to content

Commit a8899c0

Browse files
committed
feat: Trigger tests using submodule from master
1 parent 7e3eb75 commit a8899c0

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Trigger test for BDK-FFI Latest Merge
2+
on:
3+
repository_dispatch:
4+
types: [ trigger-bdk-jvm-test ]
5+
6+
permissions: {}
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-24.04
11+
steps:
12+
- name: "Check out PR branch"
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: recursive
16+
persist-credentials: false
17+
fetch-depth: 0
18+
19+
- name: "Update bdk-ffi submodule to latest"
20+
run: |
21+
cd ./bdk-ffi/ \
22+
&& git fetch origin \
23+
&& git checkout master \
24+
&& git pull origin master
25+
26+
- name: "Cache"
27+
uses: actions/cache@v3
28+
with:
29+
path: |
30+
~/.cargo/registry
31+
~/.cargo/git
32+
./target
33+
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
34+
35+
- name: "Set up JDK"
36+
uses: actions/setup-java@v4
37+
with:
38+
distribution: temurin
39+
java-version: 17
40+
41+
- name: "Run JVM tests"
42+
run: |
43+
bash ./scripts/build-linux-x86_64.sh
44+
./gradlew test -P excludeConnectedTests
45+
./gradlew :examples:build

0 commit comments

Comments
 (0)