Skip to content

Merge pull request #132 from morpho-org/docs/patch-0 #310

Merge pull request #132 from morpho-org/docs/patch-0

Merge pull request #132 from morpho-org/docs/patch-0 #310

Workflow file for this run

name: Foundry
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build:
name: Compilation (via IR)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Build contracts via IR & check sizes
run: yarn build:forge --force --sizes # don't use compilation cache
env:
FOUNDRY_PROFILE: build
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Run forge tests
run: yarn test:forge -vvv
env:
FOUNDRY_PROFILE: test