Version Packages (#10828) #1
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: 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@v2 | |
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 |