From 6120993156da4807178f3324dfb6dc38ef35c2c0 Mon Sep 17 00:00:00 2001 From: Dairon Medina Caro Date: Thu, 26 Feb 2026 16:04:28 -0500 Subject: [PATCH] ci: Change codecov rebar plugin --- .github/workflows/ci.yml | 14 +++++++------- .github/workflows/h2-compliance.yml | 2 +- rebar.config | 9 +-------- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10cc441..7452a03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,16 +27,16 @@ jobs: include: # Latest - run all checks - otp: '28.1' - rebar3: '3.24.0' + rebar3: '3.25.0' lint: true dialyzer: true coverage: true # Stable - otp: '27.2' - rebar3: '3.24.0' + rebar3: '3.25.0' # Minimum supported - otp: '25.3' - rebar3: '3.23.0' + rebar3: '3.24.0' steps: - name: Checkout @@ -96,14 +96,14 @@ jobs: - name: Generate coverage report if: ${{ matrix.coverage }} - run: rebar3 covertool generate + run: rebar3 as test codecov analyze - name: Upload coverage to Codecov if: ${{ matrix.coverage }} - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5.5.2 with: - files: _build/test/covertool/gen_http.covertool.xml - fail_ci_if_error: false + files: _build/test/codecov/codecov.json + fail_ci_if_error: true flags: erlang-${{ matrix.otp }} name: Erlang/OTP ${{ matrix.otp }} verbose: true # optional (default = false) diff --git a/.github/workflows/h2-compliance.yml b/.github/workflows/h2-compliance.yml index 380f737..0d60156 100644 --- a/.github/workflows/h2-compliance.yml +++ b/.github/workflows/h2-compliance.yml @@ -18,7 +18,7 @@ jobs: env: OTP_VERSION: '28.1' - REBAR3_VERSION: '3.24.0' + REBAR3_VERSION: '3.25.0' steps: - name: Checkout diff --git a/rebar.config b/rebar.config index 509b15f..d9fdcf4 100644 --- a/rebar.config +++ b/rebar.config @@ -14,7 +14,7 @@ ]}. {project_plugins, [ - {covertool, "~> 2.0"}, + {rebar3_codecov, {git, "https://github.com/esl/rebar3_codecov.git", {ref, "89915c0\n"}}}, {rebar3_lint, "~> 4.2"}, {erlfmt, "~> 1.7"}, {rebar3_proper, "~> 0.12"} @@ -96,13 +96,6 @@ {cover_opts, [verbose]}. {cover_print_enabled, true}. {cover_export_enabled, true}. -{covertool, [ - {coverdata_files, [ - "eunit.coverdata", - "proper.coverdata", - "ct.coverdata" - ]} -]}. {alias, [ {test, [