Skip to content

Commit

Permalink
Update rpc-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Jul 18, 2023
1 parent e8f9970 commit 7238b72
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/rpcv02.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,40 +28,26 @@ jobs:
- name: wait for devnet to be up...
run: ./.bin/devnet.sh

- name: Test contracts deployment and execute
run: echo "skip for now"
# run: cd contracts && go test -env devnet -v -run "^TestRPCv02" .

- name: Preinstall RPC v0.2 contracts on devnet
run: echo "skip for now"
# run: cd rpcv02 && go test -timeout 600s -v -env devnet -run TestDeployTransaction . && sleep 5
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "http://localhost:5050/rpc"

- name: Test Accounts (starknet.go) on devnet
# Test rpc on devnet
- name: Test RPC v0.2 on devnet
run: echo "skip for now"
# run: go test -timeout 600s -v -env devnet -run "^(TestGateway|TestRPCv02|TestGeneral)" .
run: cd rpcv02 && go test -timeout 600s -v -env devnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "http://localhost:5050/rpc"

# Test rpc on mock
- name: Test RPC v0.2 with mocks
run: cd rpcv02 && go test -v .

- name: Test RPC v0.2 on devnet
run: echo "skip for now"
# run: cd rpcv02 && go test -timeout 600s -v -env devnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "http://localhost:5050/rpc"

# Test rpc on testnet
- name: Test RPC v0.2 on testnet
run: cd rpcv02 && go test -timeout 1200s -v -env testnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "https://starknet-goerli.cartridge.gg/"

# Test rpc on mainnet
- name: Test RPC v0.2 with mainnet
run: cd rpcv02 && go test -timeout 600s -v -env mainnet .
env:
Expand Down

0 comments on commit 7238b72

Please sign in to comment.