Skip to content

Commit

Permalink
Add public acceptance tests workflow
Browse files Browse the repository at this point in the history
Signed-off-by: beeradb <[email protected]>
  • Loading branch information
beeradb committed Oct 3, 2024
1 parent f1794d8 commit b02f2a3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 130 deletions.
134 changes: 5 additions & 129 deletions .github/workflows/acceptance-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,128 +16,16 @@ on:
required: true
type: choice
options:
- mainnet
- testnet
- previewnet

jobs:
api_batch_1:
name: API Batch 1
release-tests:
name: Release Tests
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: api_batch1
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
operator_key: ${{ inputs.operator_key }}

api_batch_2:
name: API Batch 2
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: api_batch2
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
operator_key: ${{ inputs.operator_key }}

api_batch_3:
name: API Batch 3
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: api_batch3
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
operator_key: ${{ inputs.operator_key }}

erc20:
name: ERC20
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: erc20
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
operator_key: ${{ inputs.operator_key }}

ratelimiter:
name: Rate Limiter
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: ratelimiter
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
operator_key: ${{ inputs.operator_key }}

tokencreate:
name: Token Create
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: tokencreate
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
operator_key: ${{ inputs.operator_key }}

tokenmanagement:
name: Token Management
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: tokenmanagement
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
operator_key: ${{ inputs.operator_key }}

htsprecompilev1:
name: Precompile
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: htsprecompilev1
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
operator_key: ${{ inputs.operator_key }}

precompilecalls:
name: Precompile
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: precompile
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
operator_key: ${{ inputs.operator_key }}

websocket-batch-1:
name: Websocket Batch 1
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: ws_batch1
test_ws_server: true
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
operator_key: ${{ inputs.operator_key }}

websocket-batch-2:
name: Websocket Batch 2
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: ws_batch2
test_ws_server: true
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
operator_key: ${{ inputs.operator_key }}

websocket-batch-3:
name: Websocket Batch 3
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: ws_batch3
test_ws_server: true
testfilter: release_light
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
secrets:
Expand All @@ -147,19 +35,7 @@ jobs:
name: Publish Results
if: ${{ !cancelled() }}
needs:
- api_batch_1
- api_batch_2
- api_batch_3
- erc20
- ratelimiter
- tokencreate
- tokenmanagement
- htsprecompilev1
- precompilecalls
- websocket-batch-1
- websocket-batch-2
- websocket-batch-3

- release-tests
runs-on: smart-contracts-linux-medium
steps:
- name: Harden Runner
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/acceptance-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
contents: write
actions: read
# issues: read

env:
OPERATOR_ID_MAIN: ${{ inputs.operator_id }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand Down
7 changes: 7 additions & 0 deletions packages/server/tests/mainnetAcceptance.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HEDERA_NETWORK=mainnet
CHAIN_ID=0x00
MIRROR_NODE_URL=https://mainnet.mirrornode.hedera.com
MIRROR_NODE_URL_WEB3=https://mainnet.mirrornode.hedera.com
E2E_RELAY_HOST=https://mainnet.hashio.io/api
WS_RELAY_URL=wss://mainnet.hashio.io/ws
TEST_INITIAL_ACCOUNT_STARTING_BALANCE=500
1 change: 1 addition & 0 deletions packages/server/tests/previewnetAcceptance.env
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ WS_NEW_HEADS_ENABLED=true
SERVER_REQUEST_TIMEOUT_MS=60000
MEMWATCH_ENABLED=false
WRITE_SNAPSHOT_ON_MEMORY_LEAK=false
TEST_INITIAL_ACCOUNT_STARTING_BALANCE=500
1 change: 1 addition & 0 deletions packages/server/tests/testnetAcceptance.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ TEST_GAS_PRICE_DEVIATION=0.2
SERVER_REQUEST_TIMEOUT_MS=60000
MEMWATCH_ENABLED=false
WRITE_SNAPSHOT_ON_MEMORY_LEAK=false
TEST_INITIAL_ACCOUNT_STARTING_BALANCE=500

0 comments on commit b02f2a3

Please sign in to comment.