|
| 1 | +name: Solidity Fork Tests |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: |
| 8 | + paths: |
| 9 | + - 'solidity/**' |
| 10 | + - '.github/workflows/solidity-fork-tests.yml' |
| 11 | + schedule: |
| 12 | + # Run daily at 6:00 UTC |
| 13 | + - cron: '0 6 * * *' |
| 14 | + workflow_dispatch: |
| 15 | + |
| 16 | +concurrency: |
| 17 | + group: solidity-fork-tests-${{ github.ref }} |
| 18 | + cancel-in-progress: true |
| 19 | + |
| 20 | +env: |
| 21 | + TURBO_TELEMETRY_DISABLED: 1 |
| 22 | + TURBO_API: https://cache.depot.dev |
| 23 | + TURBO_TOKEN: ${{ secrets.DEPOT_TURBO_TOKEN }} |
| 24 | + TURBO_TEAM: ${{ secrets.DEPOT_ORG_ID }} |
| 25 | + |
| 26 | +jobs: |
| 27 | + fork-tests: |
| 28 | + runs-on: depot-ubuntu-latest |
| 29 | + timeout-minutes: 30 |
| 30 | + steps: |
| 31 | + - uses: actions/checkout@v5 |
| 32 | + with: |
| 33 | + submodules: recursive |
| 34 | + |
| 35 | + - name: Set Foundry RPC URLs for fork tests |
| 36 | + env: |
| 37 | + MAINNET3_ETHEREUM_RPC_URLS: ${{ secrets.MAINNET3_ETHEREUM_RPC_URLS }} |
| 38 | + MAINNET3_OPTIMISM_RPC_URLS: ${{ secrets.MAINNET3_OPTIMISM_RPC_URLS }} |
| 39 | + MAINNET3_POLYGON_RPC_URLS: ${{ secrets.MAINNET3_POLYGON_RPC_URLS }} |
| 40 | + MAINNET3_ARBITRUM_RPC_URLS: ${{ secrets.MAINNET3_ARBITRUM_RPC_URLS }} |
| 41 | + MAINNET3_BASE_RPC_URLS: ${{ secrets.MAINNET3_BASE_RPC_URLS }} |
| 42 | + run: | |
| 43 | + # Extract first URL from comma-separated list and set as env vars |
| 44 | + echo "RPC_URL_MAINNET=${MAINNET3_ETHEREUM_RPC_URLS%%,*}" >> $GITHUB_ENV |
| 45 | + echo "RPC_URL_OPTIMISM=${MAINNET3_OPTIMISM_RPC_URLS%%,*}" >> $GITHUB_ENV |
| 46 | + echo "RPC_URL_POLYGON=${MAINNET3_POLYGON_RPC_URLS%%,*}" >> $GITHUB_ENV |
| 47 | + echo "RPC_URL_ARBITRUM=${MAINNET3_ARBITRUM_RPC_URLS%%,*}" >> $GITHUB_ENV |
| 48 | + echo "RPC_URL_BASE=${MAINNET3_BASE_RPC_URLS%%,*}" >> $GITHUB_ENV |
| 49 | +
|
| 50 | + - name: yarn-build |
| 51 | + uses: ./.github/actions/yarn-build-with-cache |
| 52 | + |
| 53 | + - name: Run Fork Tests |
| 54 | + working-directory: ./solidity |
| 55 | + run: yarn test:fork |
0 commit comments