-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce support for RPC v0.2.1 (#178)
- Loading branch information
1 parent
cdccbf5
commit c8063aa
Showing
75 changed files
with
7,179 additions
and
65,534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- '*' | ||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
|
||
- name: Checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: rpcv02 | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
services: | ||
devnet: | ||
image: shardlabs/starknet-devnet:latest | ||
ports: | ||
- 5050:5050 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
|
||
- 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 (Caigo) on devnet | ||
run: echo "skip for now" | ||
# run: go test -timeout 600s -v -env devnet -run "^(TestGateway|TestRPCv02|TestGeneral)" . | ||
env: | ||
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }} | ||
INTEGRATION_BASE: "http://localhost:5050/rpc" | ||
|
||
- 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" | ||
|
||
- 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/" | ||
|
||
- name: Test RPC v0.2 with mainnet | ||
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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.