Skip to content

Merge branch 'master' into soloseng/gaspriceminimum-foundry-migration #9404

Merge branch 'master' into soloseng/gaspriceminimum-foundry-migration

Merge branch 'master' into soloseng/gaspriceminimum-foundry-migration #9404

Workflow file for this run

name: Protocol Foundry tests
on: [push, pull_request]
jobs:
check:
defaults:
run:
working-directory: packages/protocol
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Foundry cache
id: foundry-cache
uses: actions/cache@v3
with:
path: ./cache
key: ${{ runner.os }}-foundry-cache
- name: Foundry out
id: foundry-out
uses: actions/cache@v3
with:
path: ./out
key: ${{ runner.os }}-foundry-out
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Install forge dependencies
run: forge install
# "Run tests" already tries to compile the contracts
# Making it explicit here to have easier to read errors
- name: Compile Contracts
run: forge compile
- name: Run tests
# can't use gas limit because some setUp function use more than the limit
run: forge test -vvv # --block-gas-limit 20000000