Skip to content

Commit fb02e08

Browse files
ci: separate build and test steps in ci workflows
1 parent 568d730 commit fb02e08

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
path: D:\a\bdk-jvm\bdk-jvm\lib\src\main\resources\
6060

6161
build-full-library:
62-
name: Create full bdk-jvm library
62+
name: "Create full bdk-jvm library"
6363
needs: [build-macOS-native-libs, build-windows-native-lib]
6464
runs-on: ubuntu-24.04
6565
steps:

.github/workflows/test-bdk-ffi-latest.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
permissions: {}
88

99
jobs:
10-
build:
10+
test:
11+
name: "Run unit tests against the latest commit on bdk-ffi"
1112
runs-on: ubuntu-24.04
1213
steps:
1314
- name: "Check out PR branch"
@@ -40,8 +41,10 @@ jobs:
4041
distribution: temurin
4142
java-version: 17
4243

43-
- name: "Run JVM tests"
44+
- name: "Build library"
45+
run: bash ./scripts/build-linux-x86_64.sh --skip-submodule-update
46+
47+
- name: "Run tests and build examples"
4448
run: |
45-
bash ./scripts/build-linux-x86_64.sh --skip-submodule-update
4649
./gradlew test
4750
./gradlew :examples:build

.github/workflows/test.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: Run All Tests
2-
on:
3-
pull_request:
4-
workflow_dispatch:
2+
on: [pull_request, workflow_dispatch]
53

64
permissions: {}
75

86
jobs:
9-
build:
7+
test:
8+
name: "Build library and run unit tests"
109
runs-on: ubuntu-24.04
1110
steps:
1211
- name: "Check out PR branch"
@@ -31,8 +30,10 @@ jobs:
3130
distribution: temurin
3231
java-version: 17
3332

34-
- name: "Run JVM tests"
33+
- name: "Build library"
34+
run: bash ./scripts/build-linux-x86_64.sh
35+
36+
- name: "Run tests and build examples"
3537
run: |
36-
bash ./scripts/build-linux-x86_64.sh
3738
./gradlew test
3839
./gradlew :examples:build

0 commit comments

Comments
 (0)