From 5e8251fab7a48e1a7a25b65f94c3fbd094e2826d Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Tue, 17 Sep 2024 21:32:47 -0300 Subject: [PATCH 1/2] [CONFIG] [lcov] "--ignore-errors empty" parameter added. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 006d27e..ecaf2f3 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ BUILDKIT_PROGRESS=plain DOCKER_COMPOSE=docker compose # TOOLS -COVERAGE_TOOL_OPTS=--config-file .lcovrc +COVERAGE_TOOL_OPTS=--config-file .lcovrc --ignore-errors empty # C++ specific SRC_DIR = src From 43e787f7d60f7b8e8a687a7a6385a8e6806169d3 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Tue, 17 Sep 2024 21:45:08 -0300 Subject: [PATCH 2/2] [CONFIG] [Github Actions] base image to build C++ updated from ubuntu-latest (20.04) to 22.04 (beta). --- .github/workflows/cpp-coverage.yml | 2 +- .github/workflows/cpp.yml | 2 +- .github/workflows/cppcheck.yml | 2 +- .github/workflows/sonarcloud.yml | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cpp-coverage.yml b/.github/workflows/cpp-coverage.yml index cefe1fe..caf10f7 100644 --- a/.github/workflows/cpp-coverage.yml +++ b/.github/workflows/cpp-coverage.yml @@ -13,7 +13,7 @@ on: # yamllint disable-line rule:truthy jobs: coverage: name: C++ CMake CI Coverage - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout repository diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 7bfd3b9..6db426f 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -13,7 +13,7 @@ on: # yamllint disable-line rule:truthy jobs: build: name: C++ CMake CI Test - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: matrix: os: [ diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index e4020f1..ec47f04 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -13,7 +13,7 @@ on: # yamllint disable-line rule:truthy jobs: lint: name: CppCheck Lint - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout repository diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 6df315b..d5dee6b 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -11,7 +11,7 @@ on: # yamllint disable-line rule:truthy jobs: build: name: SonarCloud build and run sonar-scanner - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: # Directory where build-wrapper output will be placed BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory @@ -22,6 +22,7 @@ jobs: fetch-depth: 0 - name: Install Tools run: | + sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED sudo apt-get install lcov pip install gcovr