Skip to content

Commit cd09bc4

Browse files
committed
save
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
1 parent 566cd96 commit cd09bc4

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/zxc-e2e-test.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ jobs:
206206
- name: Build Hedera code locally
207207
if: ${{ runner.os == 'linux' && (inputs.test-script == 'test-e2e-node-local-hedera' || inputs.test-script == 'test-e2e-node-local-ptt' || inputs.test-script == 'test-e2e-node-add-local') && !cancelled() && !failure() }}
208208
run: |
209-
# if defined consensus-node-version then assign it to CONSENSUS_NODE_VERSION, otherwsie use the default from version-test.ts
210209
if [ -z "${{ inputs.consensus-node-version }}" ]; then
211210
export CONSENSUS_NODE_VERSION=$(grep 'TEST_LOCAL_HEDERA_PLATFORM_VERSION' version-test.ts | sed -E "s/.*'([^']+)';/\1/")
212211
else
@@ -232,6 +231,11 @@ jobs:
232231
233232
- name: Run E2E Tests
234233
run: |
234+
if [ -z "${{ inputs.consensus-node-version }}" ]; then
235+
export CONSENSUS_NODE_VERSION=$(grep 'TEST_LOCAL_HEDERA_PLATFORM_VERSION' version-test.ts | sed -E "s/.*'([^']+)';/\1/")
236+
else
237+
export CONSENSUS_NODE_VERSION=${{ inputs.consensus-node-version }}
238+
fi
235239
echo SOLO_TEST_CLUSTER=${{ inputs.cluster-name }}-c1 > .env
236240
cat .env
237241
${{ env.CG_EXEC }} task ${{ inputs.test-script }}

Taskfile.tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ tasks:
199199

200200
test-external-database:
201201
cmd: |
202-
export CONSENSUS_NODE_VERSION=$(grep 'HEDERA_PLATFORM_VERSION' version.ts | sed -E "s/.*'([^']+)';/\1/")
202+
if [ -z "$CONSENSUS_NODE_VERSION" ]; then
203+
export CONSENSUS_NODE_VERSION=$(grep 'HEDERA_PLATFORM_VERSION' version.ts | sed -E "s/.*'([^']+)';/\1/")
204+
fi
203205
cd examples/external-database-test
204206
SOLO_CLUSTER_NAME=solo-task-test-external-database task install:external-database
205207
task destroy:external-database

version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import fs from 'node:fs';
1313
// right before it required, this adds better semver library compatibility
1414
export const HELM_VERSION: string = 'v3.14.2';
1515
export const SOLO_CHART_VERSION: string = '0.53.0';
16-
export const HEDERA_PLATFORM_VERSION: string = 'v0.61.7';
16+
export const HEDERA_PLATFORM_VERSION: string = process.env.CONSENSUS_NODE_VERSION || 'v0.61.7';
1717
export const MIRROR_NODE_VERSION: string = 'v0.129.1';
1818
export const EXPLORER_VERSION: string = '24.15.0';
1919
export const EXPLORER_OLD_VERSION_BEFORE_LABEL_CHANGE = '24.12.0';

0 commit comments

Comments
 (0)