feat: support isolation mode tag #13511
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: 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 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Typecheck | |
| run: yarn tsc | |
| - name: Lint | |
| run: yarn lint | |
| - name: Check translations | |
| run: | | |
| yarn extract-translations | |
| git add --intent-to-add apps/evm/src/libs/translations/translations/ | |
| git diff --exit-code apps/evm/src/libs/translations/translations/ | |
| test: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - 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" |