Skip to content

Commit

Permalink
feat(CI): Use private RPCs for Ethereum and Sepolia env-tests (#5068)
Browse files Browse the repository at this point in the history
### Description

- Add private RPCs for Ethereum and Sepolia env-tests
- Support automatic retries for failed env-tests

### Testing

Manual
  • Loading branch information
Mo-Hussain authored Jan 16, 2025
1 parent b071b3d commit a17cbaa
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ jobs:
env:
MAINNET3_ARBITRUM_RPC_URLS: ${{ secrets.MAINNET3_ARBITRUM_RPC_URLS }}
MAINNET3_OPTIMISM_RPC_URLS: ${{ secrets.MAINNET3_OPTIMISM_RPC_URLS }}
MAINNET3_ETHEREUM_RPC_URLS: ${{ secrets.MAINNET3_ETHEREUM_RPC_URLS }}
TESTNET4_SEPOLIA_RPC_URLS: ${{ secrets.TESTNET4_SEPOLIA_RPC_URLS }}

timeout-minutes: 10
needs: [yarn-install]
Expand Down Expand Up @@ -330,8 +332,15 @@ jobs:
- name: Checkout registry
uses: ./.github/actions/checkout-registry

- name: Fork test ${{ matrix.environment }} ${{ matrix.module }} ${{ matrix.chain }} deployment
run: cd typescript/infra && ./fork.sh ${{ matrix.environment }} ${{ matrix.module }} ${{ matrix.chain }}
- name: Fork test ${{ matrix.environment }} ${{ matrix.module }} ${{ matrix.chain }} deployment with retries
uses: nick-fields/retry@v3
with:
timeout_minutes: 8
max_attempts: 3
retry_wait_seconds: 30
command: cd typescript/infra && ./fork.sh ${{ matrix.environment }} ${{ matrix.module }} ${{ matrix.chain }}
on_retry_command: |
echo "Test failed, waiting before retry..."
coverage:
runs-on: ubuntu-latest
Expand Down

0 comments on commit a17cbaa

Please sign in to comment.