-
Notifications
You must be signed in to change notification settings - Fork 556
feat(ci): solidity fork test cronjob #7459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0d7d155
feat(ci): solidity fork test cronjob
paulbalaji 17c521e
include depot env
paulbalaji 22ef72a
CR yorke + add yarn test:fork to package.json
paulbalaji 54a906b
refactor(ci): use Foundry env vars for RPC URLs, remove redundant fou…
paulbalaji 028321e
fix(ci): update fork test triggers to run on main and solidity changes
paulbalaji edb72a2
fix(solidity): update OZ path for soldeer in fork test
paulbalaji 4a20f47
fix(solidity): wrap test:fork in sh -c for sourcing .env.default
paulbalaji 216e4ea
driveby: revert #7454 as fork tests are excluded by #7461
paulbalaji f0b4615
chore: remove -vvv from test:fork command
paulbalaji File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,55 @@ | ||
| name: Solidity Fork Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| paths: | ||
| - 'solidity/**' | ||
| - '.github/workflows/solidity-fork-tests.yml' | ||
| schedule: | ||
| # Run daily at 6:00 UTC | ||
| - cron: '0 6 * * *' | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: solidity-fork-tests-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| TURBO_TELEMETRY_DISABLED: 1 | ||
| TURBO_API: https://cache.depot.dev | ||
| TURBO_TOKEN: ${{ secrets.DEPOT_TURBO_TOKEN }} | ||
| TURBO_TEAM: ${{ secrets.DEPOT_ORG_ID }} | ||
|
|
||
| jobs: | ||
| fork-tests: | ||
| runs-on: depot-ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Set Foundry RPC URLs for fork tests | ||
| env: | ||
| MAINNET3_ETHEREUM_RPC_URLS: ${{ secrets.MAINNET3_ETHEREUM_RPC_URLS }} | ||
| MAINNET3_OPTIMISM_RPC_URLS: ${{ secrets.MAINNET3_OPTIMISM_RPC_URLS }} | ||
| MAINNET3_POLYGON_RPC_URLS: ${{ secrets.MAINNET3_POLYGON_RPC_URLS }} | ||
| MAINNET3_ARBITRUM_RPC_URLS: ${{ secrets.MAINNET3_ARBITRUM_RPC_URLS }} | ||
| MAINNET3_BASE_RPC_URLS: ${{ secrets.MAINNET3_BASE_RPC_URLS }} | ||
| run: | | ||
| # Extract first URL from comma-separated list and set as env vars | ||
| echo "RPC_URL_MAINNET=${MAINNET3_ETHEREUM_RPC_URLS%%,*}" >> $GITHUB_ENV | ||
| echo "RPC_URL_OPTIMISM=${MAINNET3_OPTIMISM_RPC_URLS%%,*}" >> $GITHUB_ENV | ||
| echo "RPC_URL_POLYGON=${MAINNET3_POLYGON_RPC_URLS%%,*}" >> $GITHUB_ENV | ||
| echo "RPC_URL_ARBITRUM=${MAINNET3_ARBITRUM_RPC_URLS%%,*}" >> $GITHUB_ENV | ||
| echo "RPC_URL_BASE=${MAINNET3_BASE_RPC_URLS%%,*}" >> $GITHUB_ENV | ||
|
|
||
| - name: yarn-build | ||
| uses: ./.github/actions/yarn-build-with-cache | ||
|
|
||
| - name: Run Fork Tests | ||
| working-directory: ./solidity | ||
| run: yarn test:fork | ||
This file contains hidden or 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 hidden or 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,7 @@ | ||
| # Default RPC URLs for fork tests (public endpoints) | ||
| # These can be overridden by setting env vars before sourcing this file | ||
| export RPC_URL_MAINNET="${RPC_URL_MAINNET:-https://eth.merkle.io}" | ||
| export RPC_URL_OPTIMISM="${RPC_URL_OPTIMISM:-https://mainnet.optimism.io}" | ||
| export RPC_URL_POLYGON="${RPC_URL_POLYGON:-https://rpc-mainnet.matic.quiknode.pro}" | ||
| export RPC_URL_ARBITRUM="${RPC_URL_ARBITRUM:-https://arb1.arbitrum.io/rpc}" | ||
| export RPC_URL_BASE="${RPC_URL_BASE:-https://mainnet.base.org}" |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ coverage/ | |
| coverage.json | ||
| storage/ | ||
| *.env | ||
| !.env.default | ||
| *lcov.info | ||
| # Foundry | ||
| out | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.