Switch contract verification to Etherscan V2 #431
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: Main | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master, next] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| ci: | |
| name: CI | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| node-version: [18.x] | |
| bun-version: [1.x] | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Set up Node ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| - name: Install Dependencies | |
| run: bun i | |
| - name: Get changed files from evmcrispr | |
| id: changed-files | |
| uses: tj-actions/changed-files@v44 | |
| with: | |
| files: | | |
| packages/core/{src,test}/** | |
| packages/sdk/{src,test}/** | |
| packages/test-utils/** | |
| modules/** | |
| - name: Build | |
| run: bun run build | |
| - name: Lint code | |
| run: bun run lint | |
| - name: Check types | |
| run: bun run type-check | |
| - name: Unit Tests | |
| run: bun run test:unit | |
| - name: Integration Tests | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| run: | | |
| echo "VITE_DRPC_API_KEY=$VITE_DRPC_API_KEY" >> .env | |
| echo "VITE_PINATA_JWT=$VITE_PINATA_JWT" >> .env | |
| bun run test:integration | |
| env: | |
| VITE_DRPC_API_KEY: ${{ secrets.VITE_DRPC_API_KEY }} | |
| VITE_PINATA_JWT: ${{ secrets.VITE_PINATA_JWT }} |