From 174d0acc13604587f52f5df0f1917b8714c74aea Mon Sep 17 00:00:00 2001 From: count-sum Date: Mon, 9 Sep 2024 14:20:19 +0300 Subject: [PATCH] feat/1731 code coverage in Codecov --- .github/workflows/run-smc-tests.yml | 18 ++++++++++++++++++ contracts/test/LineaRollup.ts | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-smc-tests.yml b/.github/workflows/run-smc-tests.yml index b0eb36481..28bfc7d76 100644 --- a/.github/workflows/run-smc-tests.yml +++ b/.github/workflows/run-smc-tests.yml @@ -29,6 +29,24 @@ jobs: - name: Run smart contracts tests and generate coverage report run: pnpm -F contracts run coverage + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + files: ./coverage/coverage-final.json + flags: hardhat + name: codecov-contracts + verbose: true + comment: + layout: " diff, flags, files" + behavior: default + require_changes: false + require_base: false + require_head: true + hide_project_coverage: false + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + solidity-format-check: runs-on: ubuntu-latest name: Solidity format check diff --git a/contracts/test/LineaRollup.ts b/contracts/test/LineaRollup.ts index 3a7db28f6..2033b7c46 100644 --- a/contracts/test/LineaRollup.ts +++ b/contracts/test/LineaRollup.ts @@ -1742,7 +1742,7 @@ describe("Linea Rollup contract", () => { calldataAggregatedProof1To155.l1RollingHash, ); - // aggregatedProof1To81.aggregatedProof, // wrong proof on purpose + // aggregatedProof1To81.aggregatedProof, // wrong proof on purpose const finalizeCall = lineaRollup .connect(operator) .finalizeBlocksWithProof(aggregatedProof1To81.aggregatedProof, TEST_PUBLIC_VERIFIER_INDEX, finalizationData);