diff --git a/.github/workflows/foundry.yml b/.github/workflows/foundry.yml index 5a967ce..52ae428 100644 --- a/.github/workflows/foundry.yml +++ b/.github/workflows/foundry.yml @@ -31,19 +31,30 @@ jobs: forge test -vvv forge coverage --report lcov id: test + - name: Upload coverage report + uses: actions/upload-artifact@v2 + with: + name: lcov-report + path: foundry/lcov.info coverage_report: name: Enforce 100% coverage needs: test-and-coverage runs-on: ubuntu-latest steps: + - name: Download coverage report + uses: actions/download-artifact@v2 + with: + name: lcov-report + path: coverage + - name: Setup LCOV uses: hrishikesh-kadam/setup-lcov@v1 - name: Report code coverage and check threshold uses: zgosalvez/github-actions-report-lcov@v4.1.3 with: - coverage-files: 'foundry/lcov.info' + coverage-files: 'coverage/lcov.info' minimum-coverage: 100 update-comment: false id: coverage