-
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.
- Loading branch information
MBarwicki
committed
Oct 6, 2023
1 parent
545e2fc
commit 7bac6c5
Showing
4 changed files
with
64 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: (main) Auto CI run | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'main' | ||
|
||
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 | ||
|
||
# Test rpc on devnet | ||
- name: Test RPC on devnet | ||
run: cd rpc && 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 with mocks | ||
run: cd rpc && go test -v . | ||
|
||
# Test rpc on testnet | ||
- name: Test RPC on testnet | ||
run: echo "Skip for now - need public endpoint that follows rpc spec" | ||
#run: cd rpc && 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 with mainnet | ||
run: echo "Skip for now - need public endpoint that follows rpc spec" | ||
#run: cd rpc && 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
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