Fix BNB fork issue #9
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: Node.js | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }} | |
jobs: # each workflow consists of 1+ jobs; by default, all jobs run in parallel | |
test: # Run tests. | |
runs-on: ubuntu-latest # host's operating system | |
steps: # each job consists of 1+ steps | |
- name: Checkout commit # download the code from triggering commit | |
uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "yarn" | |
cache-dependency-path: "yarn.lock" | |
- name: Install dependencies 📦 | |
run: yarn install --frozen-lockfile | |
- name: Run prettier check | |
run: yarn prettier | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run Forge build | |
run: | | |
forge --version | |
forge build | |
id: build | |
- name: Generate Typechain types | |
run: yarn typechain | |
- name: Run hardhat tests | |
run: yarn test:hardhat |