Skip to content

✅ Invariants – Replace OptionState ghost vars with actual #81

✅ Invariants – Replace OptionState ghost vars with actual

✅ Invariants – Replace OptionState ghost vars with actual #81

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
env:
FOUNDRY_PROFILE: ci
jobs:
check:
strategy:
fail-fast: true
name: Foundry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build
- name: Run Forge tests
run: |
forge test --nmc Invariant -vvv
id: test
- name: Run Forge coverage
run: |
forge coverage --nmc Invariant --report summary --report lcov
- name: Filter coverage files
run: |
sudo apt update && sudo apt install -y lcov
lcov --remove lcov.info 'src/interface/*' 'test/*' 'script/*' --output-file lcov.info --rc lcov_branch_coverage=1
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}