diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 00000000..5669ef8a --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,29 @@ +name: Coverage + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +env: + FOUNDRY_PROFILE: ci + +jobs: + 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: Generate Coverage Report + run: | + echo "# Coverage Report" >> $GITHUB_STEP_SUMMARY + forge coverage --report summary --ir-minimum >> $GITHUB_STEP_SUMMARY