Update dependencies #175
Workflow file for this run
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
name: "Test" | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test-fork: | |
if: github.event.pull_request.head.repo.fork == true && github.event.pull_request.head.repo.private == false | |
env: | |
SEPOLIA_RPC: https://ethereum-sepolia-rpc.publicnode.com | |
MAINNET_RPC: https://cloudflare-eth.com | |
POLYGON_RPC: wss://polygon.drpc.org | |
OPTIMISM_RPC: https://mainnet.optimism.io | |
ARBITRUM_RPC: https://1rpc.io/arb | |
GNOSIS_RPC: https://gnosis.publicnode.com | |
BASE_RPC: https://mainnet.base.org | |
BASE_SEPOLIA_RPC: https://sepolia.base.org | |
CELO_RPC: https://forno.celo.org | |
ETHERSCAN_KEY: HDMPWG86NYEF1Y5KWZU1XI4HZX4SNHFW3B | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.16.1 | |
- name: Set up foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install | |
run: pnpm install --frozen-lockfile | |
- name: Check Format | |
run: pnpm prettier . --check | |
- name: Test | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 10 | |
max_attempts: 3 | |
command: pnpm test | |
test-branch: | |
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name | |
env: | |
SEPOLIA_RPC: ${{ secrets.SEPOLIA_HTTP_PROVIDER }} | |
MAINNET_RPC: ${{ secrets.MAINNET_HTTP_PROVIDER }} | |
POLYGON_RPC: ${{ secrets.POLYGON_HTTP_PROVIDER }} | |
OPTIMISM_RPC: ${{ secrets.OPTIMISM_HTTP_PROVIDER }} | |
ARBITRUM_RPC: ${{ secrets.ARBITRUM_HTTP_PROVIDER }} | |
GNOSIS_RPC: ${{ secrets.GNOSIS_HTTP_PROVIDER }} | |
BASE_RPC: ${{ secrets.BASE_HTTP_PROVIDER }} | |
BASE_SEPOLIA_RPC: ${{ secrets.BASE_SEPOLIA_HTTP_PROVIDER }} | |
CELO_RPC: ${{ secrets.CELO_HTTP_PROVIDER }} | |
ETHERSCAN_KEY: ${{ secrets.ETHERSCAN_KEY }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10 | |
run_install: false | |
- name: Set up foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install | |
run: pnpm install --frozen-lockfile | |
- name: Check Format | |
run: pnpm prettier . --check | |
- name: Test | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 10 | |
max_attempts: 3 | |
command: pnpm test |