feat/1731 code coverage in Codecov (#13)

* feat/1731 code coverage in Codecov
This commit is contained in:
Andrei A.
2024-09-25 17:30:15 +03:00
committed by GitHub
parent d0e97c171e
commit 61d1724632
4 changed files with 59 additions and 3 deletions

View File

@@ -94,5 +94,13 @@ 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:
fail_ci_if_error: true
files: ${{ github.workspace }}/build/reports/jacoco/jacocoRootReport/jacocoRootReport.xml
flags: kotlin
os: linux
name: codecov-coordinator
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

View File

@@ -49,6 +49,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
os: linux-arm64
name: codecov-contracts
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
solidity-format-check:
runs-on: besu-arm64
name: Solidity format check

37
codecov.yml Normal file
View File

@@ -0,0 +1,37 @@
codecov:
notify:
wait_for_ci: false
require_ci_to_pass: false
comment:
behavior: default
hide_project_coverage: false
layout: "diff, flags, files"
require_base: false
require_changes: false
require_head: true
show_carryforward_flags: true
coverage:
precision: 2
range: 60..80
round: down
status:
changes: false
default_rules:
flag_coverage_not_uploaded_behavior: include
patch: true
project: true
flags:
hardhat:
paths:
- contracts/
kotlin:
paths:
- coordinator/
- jvm-libs/
github_checks:
annotations: false
slack_app: false

View File

@@ -1937,7 +1937,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);