-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Starknet Go tests to CI/CD pipeline
- Integrate starknet-go-tests workflow into development, staging, and production stages - Mirror the structure used for Rust and JavaScript tests - Use appropriate RPC URLs and account private keys for each environment - Ensure Go tests run after validation/promotion in each stage
- Loading branch information
1 parent
153e651
commit 06a1978
Showing
2 changed files
with
55 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: starknet-go tests | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
TEST_RPC_URL: | ||
required: false | ||
TEST_ACCOUNT_PRIVATE_KEY: | ||
required: false | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: NethermindEth/starknet.go | ||
ref: main | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.23' | ||
|
||
- name: Install dependencies | ||
run: go mod download | ||
|
||
- name: Test RPC on testnet | ||
run: cd rpc && go test -timeout 1200s -v -env testnet . | ||
env: | ||
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }} | ||
INTEGRATION_BASE: ${{ secrets.TEST_RPC_URL }} |