Skip to content

feat: test the foreign reserve (#64) #196

feat: test the foreign reserve (#64)

feat: test the foreign reserve (#64) #196

Workflow file for this run

name: CI
on:
push:
workflow_dispatch:
jobs:
foundry:
env:
FOUNDRY_PROFILE: ci
NODE_OPTIONS: "--disable-warning=ExperimentalWarning"
strategy:
fail-fast: true
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Show Forge version
run: forge --version
- name: Run Forge fmt
run: forge fmt --check
id: fmt
- name: Install Slither
run: pip install slither-analyzer
- name: Show Slither version
run: slither --version
- name: Run Slither
run: slither .
id: slither
- name: "Install Bun"
uses: "oven-sh/setup-bun@v1"
- name: Show Bun version
run: bun --version
- name: Install Test-Tooling
run: bun install
- name: Run Solhint in `src` dir
run: bunx --bun solhint --config .solhint.json 'src/**/*.sol'
id: solhint-src
- name: Run Solhint in `test` dir
run: bunx --bun solhint --config .solhint.other.json 'test/**/*.sol'
id: solhint-test
- name: Run Solhint in `script` dir
run: bunx --bun solhint --config .solhint.other.json 'script/**/*.sol'
id: solhint-script
- name: Run Forge clean
run: forge clean
id: clean
- name: Run Forge build
run: forge build --sizes --ast
id: build
- name: Run Forge tests
run: forge test -vvv --gas-report
id: test
- name: Run Forge coverage
run: forge coverage --ir-minimum
id: coverage