refactor(evm): switch to virtual testnet and enable swap for testing #12580
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: Tests and Checks | |
| on: [pull_request] | |
| concurrency: | |
| group: ${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| NODE_OPTIONS: "--max_old_space_size=4096" | |
| VITE_ENV: "ci" | |
| CLI_NODE_REAL_API_KEY: ${{ secrets.CLI_NODE_REAL_API_KEY }} | |
| CLI_ALCHEMY_API_KEY: ${{ secrets.CLI_ALCHEMY_API_KEY }} | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "yarn" | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Typecheck | |
| run: yarn tsc | |
| - name: Lint | |
| run: yarn lint | |
| test: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "yarn" | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Run tests and collect coverage | |
| run: yarn test --coverage | |
| - name: "Report coverage" | |
| if: always() # Also generate the report even if tests are failing | |
| uses: davelosert/vitest-coverage-report-action@v2 | |
| with: | |
| working-directory: "./apps/evm" |