Skip to content

Commit

Permalink
Update e2e tests to run on RPC v0.5 (#1465)
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill <[email protected]>
  • Loading branch information
wojciechos and kirugan authored Nov 24, 2023
1 parent b7c7f69 commit 3b96b8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ jobs:
needs: [deploy_to_dev]
uses: ./.github/workflows/starknet-rs-tests.yml
secrets:
STARKNET_RPC: ${{ secrets.DEV_GOERLI_URL }}/v0_4
STARKNET_RPC: ${{ secrets.DEV_GOERLI_URL }}/v0_5

dev-starknet-js-tests:
needs: [deploy_to_dev]
uses: ./.github/workflows/starknet-js-tests.yml
secrets:
TEST_RPC_URL: ${{ secrets.DEV_GOERLI_URL }}/v0_4
TEST_RPC_URL: ${{ secrets.DEV_GOERLI_URL }}/v0_5
TEST_ACCOUNT_ADDRESS: ${{ secrets.GOERLI_TEST_ACCOUNT_ADDRESS }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_TEST_ACCOUNT_PRIVATE_KEY }}

Expand Down Expand Up @@ -109,13 +109,13 @@ jobs:
needs: [deploy_to_staging]
uses: ./.github/workflows/starknet-rs-tests.yml
secrets:
STARKNET_RPC: ${{ secrets.STAGING_GOERLI_URL }}/v0_4
STARKNET_RPC: ${{ secrets.STAGING_GOERLI_URL }}/v0_5

staging-starknet-js-tests:
needs: [deploy_to_staging]
uses: ./.github/workflows/starknet-js-tests.yml
secrets:
TEST_RPC_URL: ${{ secrets.STAGING_GOERLI_URL }}/v0_4
TEST_RPC_URL: ${{ secrets.STAGING_GOERLI_URL }}/v0_5
TEST_ACCOUNT_ADDRESS: ${{ secrets.GOERLI_TEST_ACCOUNT_ADDRESS }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_TEST_ACCOUNT_PRIVATE_KEY }}

Expand Down Expand Up @@ -145,12 +145,12 @@ jobs:
needs: [deploy_to_production]
uses: ./.github/workflows/starknet-rs-tests.yml
secrets:
STARKNET_RPC: ${{ secrets.PROD_GOERLI_URL }}/v0_4
STARKNET_RPC: ${{ secrets.PROD_GOERLI_URL }}/v0_5

prod-starknet-js-tests:
needs: [deploy_to_production]
uses: ./.github/workflows/starknet-js-tests.yml
secrets:
TEST_RPC_URL: ${{ secrets.PROD_GOERLI_URL }}/v0_4
TEST_RPC_URL: ${{ secrets.PROD_GOERLI_URL }}/v0_5
TEST_ACCOUNT_ADDRESS: ${{ secrets.GOERLI_TEST_ACCOUNT_ADDRESS }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_TEST_ACCOUNT_PRIVATE_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/starknet-js-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
required: false
TEST_ACCOUNT_PRIVATE_KEY:
required: false

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: starknet-io/starknet.js
ref: v5.19.5
ref: v5.24.3

- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/starknet-rs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: xJonathanLEI/starknet-rs
ref: starknet/v0.6.0
ref: dev/jsonrpc_0_5_0

- name: Setup Rust
uses: actions-rs/toolchain@v1
Expand All @@ -26,6 +26,6 @@ jobs:
- name: Run jsonrpc tests
run: |
cd starknet-providers && cargo test jsonrpc
cd ../starknet-accounts && cargo test jsonrpc -- --skip can_declare_cairo0_contract_with_jsonrpc
cd ../starknet-accounts && cargo test jsonrpc
env:
STARKNET_RPC: ${{ secrets.STARKNET_RPC }}

0 comments on commit 3b96b8d

Please sign in to comment.