-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(starknet_client): integration test with the starknet GW (#1258)
test(JSON-RPC): integration test with the starknet GW
- Loading branch information
Showing
8 changed files
with
331 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: nightly-tests-call | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
required: true | ||
type: string | ||
secrets: | ||
INTEGRATION_TESTNET_NODE_URL: | ||
required: true | ||
INTEGRATION_TESTNET_SENDER_PRIVATE_KEY: | ||
required: true | ||
|
||
jobs: | ||
GW-integration-test-call: | ||
runs-on: ${{ inputs.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- uses: Swatinem/rust-cache@v2 | ||
# Workflow steps exit upon failure of a subcommand (running `set -e` implicitly before the | ||
# run. As we want to keep running this step after a test failure we can either start with | ||
# `set +e` to suppress all errors, or, as done below, append `|| retVal=$?` to the command | ||
# which makes it successful while storing the potential erroneous code. | ||
- run: > | ||
sudo apt update; sudo apt -y install libclang-dev; | ||
INTEGRATION_TESTNET_NODE_URL=${{ secrets.INTEGRATION_TESTNET_NODE_URL }} | ||
SENDER_PRIVATE_KEY=${{ secrets.INTEGRATION_TESTNET_SENDER_PRIVATE_KEY }} | ||
cargo test --test gateway_integration_test -p papyrus_rpc test_gw_integration_testnet | ||
-- --ignored || retVal=$?; | ||
if [ $retVal -ne 0 ]; then | ||
echo "Integration test failed with exit code $retVal"; | ||
fi; | ||
exit $retVal |
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,28 @@ | ||
name: nightly-tests | ||
# We run gateway_integration_test at different times, to avoid a nonce race between parallel runs. | ||
on: | ||
schedule: | ||
- cron: '30 0 * * *' # Uses ubuntu runner. | ||
- cron: '30 3 * * *' # Uses macos runner. | ||
workflow_dispatch: # Uses ubuntu runner. | ||
|
||
jobs: | ||
GW-integration-test-ubuntu: | ||
uses: ./.github/workflows/nightly-tests-call.yml | ||
with: | ||
os: ubuntu-latest | ||
secrets: | ||
INTEGRATION_TESTNET_NODE_URL: ${{ secrets.INTEGRATION_TESTNET_NODE_URL }} | ||
INTEGRATION_TESTNET_SENDER_PRIVATE_KEY: ${{ secrets.INTEGRATION_TESTNET_SENDER_PRIVATE_KEY }} | ||
if: github.event.schedule != '30 3 * * *' | ||
|
||
GW-integration-test-macos: | ||
uses: ./.github/workflows/nightly-tests-call.yml | ||
with: | ||
os: macos-latest | ||
secrets: | ||
INTEGRATION_TESTNET_NODE_URL: ${{ secrets.INTEGRATION_TESTNET_NODE_URL }} | ||
INTEGRATION_TESTNET_SENDER_PRIVATE_KEY: ${{ secrets.INTEGRATION_TESTNET_SENDER_PRIVATE_KEY }} | ||
if: github.event.schedule == '30 3 * * *' | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.