From a31c8dc128e739fbdd85c64d2b9c8db95d3cc0f8 Mon Sep 17 00:00:00 2001 From: gomes <17035424+gomesalexandre@users.noreply.github.com> Date: Tue, 9 Apr 2024 23:32:16 +0200 Subject: [PATCH] feat: upload and download lcov report --- .github/workflows/foundry.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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