mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 20:27:58 -05:00
feat/1731 code coverage in Codecov (#13)
* feat/1731 code coverage in Codecov
This commit is contained in:
12
.github/workflows/coordinator-testing.yml
vendored
12
.github/workflows/coordinator-testing.yml
vendored
@@ -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 }}
|
||||
11
.github/workflows/run-smc-tests.yml
vendored
11
.github/workflows/run-smc-tests.yml
vendored
@@ -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
37
codecov.yml
Normal 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
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user