diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3b001df..c9799d40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,26 @@ jobs: - name: "Test the contracts and generate the coverage report" run: "npx hardhat coverage" + - name: Code Coverage Report + uses: irongut/CodeCoverageSummary@v1.3.0 + with: + filename: coverage/**/cobertura-coverage.xml + badge: true + fail_below_min: false + format: markdown + hide_branch_rate: false + hide_complexity: true + indicators: true + output: both + thresholds: "50 80" + + - name: Add Coverage PR Comment + uses: marocchino/sticky-pull-request-comment@v2 + if: github.event_name == 'pull_request' + with: + recreate: true + path: code-coverage-results.md + docgen: name: Docgen runs-on: ubuntu-latest