fix: add erc20 sending limit testcase #46
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/[email protected] | |
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 |