Skip to content

[SC-1031] Migrate from hardhat to foundry #36

[SC-1031] Migrate from hardhat to foundry

[SC-1031] Migrate from hardhat to foundry #36

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- run: yarn
- run: yarn lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- run: yarn
- run: yarn test:ci
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- run: yarn
- run: yarn coverage
- uses: codecov/codecov-action@v3
foundry:
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- run: yarn
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install dependencies
run: forge install
- name: Check contract sizes
run: forge build --sizes
- name: Run tests
run: forge test -vvv --gas-report
- name: Run linter for tests
run: yarn lint:foundry
# - name: Run snapshot
# run: forge snapshot