From ef9635d66a0433bbfeac4e74c6f4880b31865867 Mon Sep 17 00:00:00 2001 From: Gianmarco Fraccaroli Date: Tue, 9 Apr 2024 12:32:12 +0200 Subject: [PATCH 1/2] ci: update codecov to v4 --- .github/workflows/build-and-test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index eada61b27a..aa042443dc 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -270,10 +270,13 @@ jobs: NAMADA_MASP_PARAMS_DIR: /home/runner/.masp-params RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold" - name: Upload coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: - files: lcov.info fail_ci_if_error: true + files: lcov.info + verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Print sccache stats if: always() run: sccache --show-stats || true From bbba44b3e592b3f1888ff2534c0a360593e3e2fa Mon Sep 17 00:00:00 2001 From: Gianmarco Fraccaroli Date: Tue, 9 Apr 2024 12:44:16 +0200 Subject: [PATCH 2/2] ci: add codecov settings --- codecov.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..dfcda309ab --- /dev/null +++ b/codecov.yml @@ -0,0 +1,29 @@ +coverage: + precision: 2 + round: down + range: "60...90" + +github_checks: + annotations: false + +ignore: + - audits/* + - docker/* + - documentation/* + - examples/* + - genesis/* + - proto/* + - scripts/* + - *.hsb + - *.toml + - *.lock + - *.md + - *.yml + - .github/* + - .vscode + - changelog/* + - LICENSE + - Makefile + - crates/tests + - crates/test_utils + - crates/benches \ No newline at end of file