fix: implement storage gaps in base contracts #60
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: Solidity CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
FOUNDRY_PROFILE: ci | |
jobs: | |
test: | |
strategy: | |
fail-fast: true | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run Forge build | |
run: | | |
forge build --sizes | |
id: build | |
- name: Run Forge tests | |
run: | | |
FOUNDRY_PROFILE=intense forge test -vvv | |
id: test | |
slither: | |
strategy: | |
fail-fast: true | |
name: slither | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- uses: crytic/slither-action@v0.3.2 | |
with: | |
slither-config: ./slither.config.json | |
coverage: | |
strategy: | |
fail-fast: true | |
name: coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run Forge build | |
run: | | |
forge build --sizes | |
id: build | |
- name: Run Forge coverage | |
run: | | |
forge coverage | |
id: coverage | |
gas-report: | |
strategy: | |
fail-fast: true | |
name: gas-report | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run Forge build | |
run: | | |
forge build --sizes | |
id: build | |
- name: Run Forge tests | |
run: | | |
FOUNDRY_FUZZ_RUNS=1 forge test --gas-report | |
id: test |