π fix push_check for foundry #11
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: Test workflow | |
on: push | |
jobs: | |
unit_test: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout | |
uses: "actions/checkout@main" | |
- name: Set Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Create a fake .secret file | |
run: echo "primary twist rack vendor diagram image used route theme frown either will" > .secret | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install foundry dependencies | |
run: forge install | |
- name: Install hardhat dependencies | |
run: yarn install --frozen-lockfile && yarn build | |
- name: Run Forge build | |
run: yarn build:foundry | |
- name: Generate account-abstraction Typechain typings | |
run: yarn prepare-typechain | |
- name: Run Hardhat Tests | |
run: yarn test | |
- name: Run Forge tests | |
run: | | |
yarn test:foundry | |
id: forge-test |