Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Jul 18, 2023
1 parent 41ca1e2 commit a342ce9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/rpcv02.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ jobs:

# Test rpc on testnet
- name: Test RPC v0.2 on testnet
run: cd rpcv02 && go test -timeout 1200s -v -env testnet .
run: echo "Skip for now - need public endpoint that follows rpc spec"
#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 .
run: echo "Skip for now - need public endpoint that follows rpc spec"
#run: cd rpcv02 && go test -timeout 600s -v -env mainnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "https://starknet.cartridge.gg/"
30 changes: 10 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,56 +31,46 @@ jobs:
run: ./.bin/devnet.sh

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

- name: Test RPC v0.1 with mocks
run: echo "skip for now"
#run: cd rpcv01 && go test -v .
run: cd rpcv01 && go test -v .

- name: Preinstall RPC v0.1 contracts on devnet
run: echo "skip for now"
#run: cd rpcv01 && go test -timeout 600s -v -env devnet -run TestDeployTransaction . && sleep 5
run: cd rpcv01 && 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
run: echo "skip for now"
#run: go test -timeout 600s -v -env devnet -run "^(TestGateway|TestRPCv01|TestGeneral)" .
run: go test -timeout 600s -v -env devnet -run "^(TestGateway|TestRPCv01|TestGeneral)" .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "http://localhost:5050/rpc"

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

- name: Test sessionkey on devnet
run: echo "skip for now"
#run: cd plugins/xsessions && ./sessionkey.sh
run: cd plugins/xsessions && ./sessionkey.sh

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

- name: Test RPC v0.1 with mainnet
run: echo "skip for now"
#run: cd rpcv01 && go test -timeout 600s -v -env mainnet .
run: cd rpcv01 && go test -timeout 600s -v -env mainnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "https://starknet.cartridge.gg/rpc/v0.1"

- name: Test Gateway with testnet
run: echo "skip for now"
#run: cd gateway && go test -v -env testnet .
run: cd gateway && go test -v -env testnet .

- name: Test Gateway with devnet
run: echo "skip for now"
#run: cd gateway && go test -v -env devnet .
run: cd gateway && go test -v -env devnet .

0 comments on commit a342ce9

Please sign in to comment.