Invariant testing campaign #259
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: ARM | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
push: | |
branches: | |
- 'main' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# increasing available memory for node reduces issues with ganache crashing | |
# https://nodejs.org/api/cli.html#cli_max_old_space_size_size_in_megabytes | |
NODE_OPTIONS: --max_old_space_size=4096 | |
jobs: | |
lint: | |
name: Contracts Linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Run Linter | |
run: forge fmt --check | |
foundry-tests: | |
name: Foundry fork tests | |
runs-on: ubuntu-latest | |
env: | |
PROVIDER_URL: ${{ secrets.PROVIDER_URL }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install Dependencies | |
run: forge soldeer install | |
- name: Run fork tests | |
run: forge test -vvv --summary --detailed |