Skip to content

Commit 620bd77

Browse files
authored
add a new job in CI to run solo with 2 consensus nodes (#2528)
Signed-off-by: emiliyank <e.kadiyski@gmail.com>
1 parent 76a4fe5 commit 620bd77

File tree

2 files changed

+74
-3
lines changed

2 files changed

+74
-3
lines changed

.github/workflows/build.yml

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176

177177
- name: Prepare Hiero Solo
178178
id: solo
179-
uses: hiero-ledger/hiero-solo-action@b76850c1ac44466900f8e7412b309c3aa0f539c1 # v0.14
179+
uses: hiero-ledger/hiero-solo-action@dd0048139ef1e40fd6067f01bf94eb42a67294f4 # v0.15
180180
with:
181181
installMirrorNode: true
182182

@@ -192,14 +192,79 @@ jobs:
192192
OPERATOR_ID: "0.0.2"
193193
HEDERA_NETWORK: "localhost"
194194
run: |
195-
./gradlew -POPERATOR_ID=$OPERATOR_ID -POPERATOR_KEY=$OPERATOR_KEY -PHEDERA_NETWORK=$HEDERA_NETWORK :aggregation:testCodeCoverageReport
195+
./gradlew \
196+
-POPERATOR_ID=$OPERATOR_ID \
197+
-POPERATOR_KEY=$OPERATOR_KEY \
198+
-PHEDERA_NETWORK=$HEDERA_NETWORK \
199+
test \
200+
testIntegration \
201+
-PskipNodeUpdateTest=true
202+
203+
./gradlew \
204+
-POPERATOR_ID=$OPERATOR_ID \
205+
-POPERATOR_KEY=$OPERATOR_KEY \
206+
-PHEDERA_NETWORK=$HEDERA_NETWORK \
207+
:aggregation:testCodeCoverageReport
196208
197209
- name: Upload coverage to Codecov
198210
if: ${{ github.event_name == 'push' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }}
199211
uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2
200212
with:
201213
files: gradle/aggregation/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
202214

215+
test-dab:
216+
name: Test Dynamic Addressbook
217+
runs-on: hiero-client-sdk-linux-medium
218+
needs:
219+
- build
220+
steps:
221+
- name: Harden Runner
222+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
223+
with:
224+
egress-policy: audit
225+
226+
- name: Checkout Code
227+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
228+
with:
229+
fetch-depth: 0
230+
231+
- name: Setup NodeJS
232+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
233+
with:
234+
node-version: 18
235+
236+
- name: Setup Java
237+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
238+
with:
239+
distribution: temurin
240+
java-version: "21.0.6"
241+
242+
- name: Setup Gradle
243+
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
244+
245+
- name: Prepare Hiero Solo (DUAL MODE)
246+
id: solo
247+
uses: hiero-ledger/hiero-solo-action@dd0048139ef1e40fd6067f01bf94eb42a67294f4 # v0.15
248+
with:
249+
installMirrorNode: true
250+
dualMode: true
251+
252+
- name: Build SDK
253+
run: ./gradlew assemble
254+
255+
- name: Run tests
256+
env:
257+
OPERATOR_KEY: "302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137"
258+
OPERATOR_ID: "0.0.2"
259+
HEDERA_NETWORK: "localhost"
260+
run: |
261+
./gradlew \
262+
-POPERATOR_ID=$OPERATOR_ID \
263+
-POPERATOR_KEY=$OPERATOR_KEY \
264+
-PHEDERA_NETWORK=$HEDERA_NETWORK \
265+
testIntegration \
266+
--tests "*NodeUpdateTransactionIntegrationTest"
267+
203268
run-examples:
204269
name: Run Examples
205270
runs-on: hiero-client-sdk-linux-medium
@@ -233,7 +298,7 @@ jobs:
233298

234299
- name: Prepare Hiero Solo
235300
id: solo
236-
uses: hiero-ledger/hiero-solo-action@b76850c1ac44466900f8e7412b309c3aa0f539c1 # v0.14
301+
uses: hiero-ledger/hiero-solo-action@dd0048139ef1e40fd6067f01bf94eb42a67294f4 # v0.15
237302
with:
238303
installMirrorNode: true
239304

sdk/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,9 @@ tasks.register<Exec>("updateProto") {
8787
executable = File(rootDir, "scripts/update_protobufs.py").absolutePath
8888
args("main") // argument is the branch/tag
8989
}
90+
91+
tasks.withType<Test>().configureEach {
92+
if (project.hasProperty("skipNodeUpdateTest")) {
93+
filter { excludeTestsMatching("*NodeUpdateTransactionIntegrationTest") }
94+
}
95+
}

0 commit comments

Comments
 (0)