Skip to content

Commit

Permalink
chore: e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick committed Feb 29, 2024
1 parent 2d5e490 commit 9550ed5
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/zxc-compile-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ jobs:
name: Unit Test Coverage Report
path: 'coverage/unit'

- name: Install Local Node (E2E Tests)
if: ${{ inputs.enable-e2e-tests && !cancelled() && !failure() }}
run: npm install -g @hashgraph/hedera-local
# - name: Install Local Node (E2E Tests)
# if: ${{ inputs.enable-e2e-tests && !cancelled() && !failure() }}
# run: npm install -g @hashgraph/hedera-local

- name: Setup Local Node (E2E Tests)
id: setup-local-node
if: ${{ inputs.enable-e2e-tests && !cancelled() && !failure() }}
run: hedera start --verbose --detached --dev
# - name: Setup Local Node (E2E Tests)
# id: setup-local-node
# if: ${{ inputs.enable-e2e-tests && !cancelled() && !failure() }}
# run: hedera start --verbose --detached --dev

- name: Configure E2E Tests
if: ${{ inputs.enable-e2e-tests && !cancelled() && !failure() }}
Expand All @@ -121,23 +121,20 @@ jobs:
touch "${HOME}/.hedera/.env"
echo "LOCALNET_OPERATOR_ID=0.0.1022" >> "${HOME}/.hedera/.env"
echo "LOCALNET_OPERATOR_KEY=0xa608e2130a0a3cb34f86e757303c862bee353d9ab77ba4387ec084f881d420d4" >> "${HOME}/.hedera/.env"
echo "PREVIEWNET_OPERATOR_ID=" >> "${HOME}/.hedera/.env"
echo "PREVIEWNET_OPERATOR_KEY=" >> "${HOME}/.hedera/.env"
echo "TESTNET_OPERATOR_ID=" >> "${HOME}/.hedera/.env"
echo "TESTNET_OPERATOR_KEY=" >> "${HOME}/.hedera/.env"
echo "MAINNET_OPERATOR_ID=" >> "${HOME}/.hedera/.env"
echo "MAINNET_OPERATOR_KEY=" >> "${HOME}/.hedera/.env"
npm run copy-test-state
npm run rename-test-state
echo "PREVIEWNET_OPERATOR_ID=0.0.1022" >> "${HOME}/.hedera/.env"
echo "PREVIEWNET_OPERATOR_KEY=0xa608e2130a0a3cb34f86e757303c862bee353d9ab77ba4387ec084f881d420d4" >> "${HOME}/.hedera/.env"
echo "TESTNET_OPERATOR_ID=0.0.1022" >> "${HOME}/.hedera/.env"
echo "TESTNET_OPERATOR_KEY=0xa608e2130a0a3cb34f86e757303c862bee353d9ab77ba4387ec084f881d420d4" >> "${HOME}/.hedera/.env"
echo "MAINNET_OPERATOR_ID=0.0.1022" >> "${HOME}/.hedera/.env"
echo "MAINNET_OPERATOR_KEY=0xa608e2130a0a3cb34f86e757303c862bee353d9ab77ba4387ec084f881d420d4" >> "${HOME}/.hedera/.env"
- name: Run E2E Tests
if: ${{ inputs.enable-e2e-tests && !cancelled() && !failure() }}
run: npm run e2e-test

- name: Teardown Local Node (E2E Tests)
if: ${{ inputs.enable-e2e-tests && steps.setup-local-node.conclusion == 'success' }}
run: hedera stop
# - name: Teardown Local Node (E2E Tests)
# if: ${{ inputs.enable-e2e-tests && steps.setup-local-node.conclusion == 'success' }}
# run: hedera stop

- name: Publish E2E Test Report
uses: EnricoMi/publish-unit-test-result-action@f355d34d53ad4e7f506f699478db2dd71da9de5f # v2.15.1
Expand Down

0 comments on commit 9550ed5

Please sign in to comment.