File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import fs from 'node:fs';
1313// right before it required, this adds better semver library compatibility
1414export const HELM_VERSION : string = 'v3.14.2' ;
1515export 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' ;
1717export const MIRROR_NODE_VERSION : string = 'v0.129.1' ;
1818export const EXPLORER_VERSION : string = '24.15.0' ;
1919export const EXPLORER_OLD_VERSION_BEFORE_LABEL_CHANGE = '24.12.0' ;
You can’t perform that action at this time.
0 commit comments