Fix issue on ethers when switching chains #2018
Workflow file for this run
This file contains 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: Checks | |
on: | |
pull_request: | |
branches: | |
- V3 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
if: github.event.action == 'opened' || github.event.action == 'synchronize' | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: 'npm' | |
cache-dependency-path: 'package-lock.json' | |
- name: install | |
run: npm ci | |
- name: build | |
run: npm run build | |
env: | |
NEXT_PUBLIC_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_PROJECT_ID }} | |
code_style: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
style-command: | |
- lint | |
- prettier | |
- typecheck | |
- danger | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: 'npm' | |
cache-dependency-path: 'package-lock.json' | |
- name: install | |
run: npm ci | |
- name: build | |
run: npm run build | |
env: | |
NEXT_PUBLIC_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_PROJECT_ID }} | |
- name: check | |
run: npm run ${{ matrix.style-command }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: 'npm' | |
cache-dependency-path: 'package-lock.json' | |
- name: install | |
run: npm ci | |
- name: test | |
run: npm run test |