Skip to content

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

[SC-1031] Migrate from hardhat to foundry

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

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
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Check contract sizes
run: forge build --sizes
- name: Run tests
run: yarn test
# - name: Run snapshot
# run: forge snapshot
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Run coverage
run: yarn coverage
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}