diff --git a/.github/workflows/coordinator-testing.yml b/.github/workflows/coordinator-testing.yml index c0132e918..652b4fed4 100644 --- a/.github/workflows/coordinator-testing.yml +++ b/.github/workflows/coordinator-testing.yml @@ -94,5 +94,10 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} message-path: | ${{ github.workspace }}/build/reports/jacoco/jacocoRootReport/coverageDeltaReports/DeltaSummary.md - - + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + files: ${{ github.workspace }}/build/reports/jacoco/jacocoRootReport/coverageReports/*.md + flags: kotlin + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/run-smc-tests.yml b/.github/workflows/run-smc-tests.yml index b0eb36481..05bf75607 100644 --- a/.github/workflows/run-smc-tests.yml +++ b/.github/workflows/run-smc-tests.yml @@ -29,6 +29,17 @@ 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: ./contracts/coverage/coverage-final.json + flags: hardhat + name: codecov-contracts + verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + solidity-format-check: runs-on: ubuntu-latest name: Solidity format check diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..0de2f39a9 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,8 @@ +comment: + layout: " diff, flags, files" + behavior: default + require_changes: false + require_base: false + require_head: true + hide_project_coverage: false + \ No newline at end of file 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);