From 60a91c4ea943eb918821801bc6057b9777925736 Mon Sep 17 00:00:00 2001 From: Ruben Perez Date: Sat, 28 Mar 2026 20:12:52 +0100 Subject: [PATCH] Changes the coverage build to use a dedicate Docker container --- .github/workflows/coverage.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f049af6e1..1b7411701 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ name: coverage on: push: branches: [develop, master] - tags: ['*'] + tags: ["*"] pull_request: workflow_dispatch: @@ -18,7 +18,7 @@ jobs: coverage: runs-on: ubuntu-latest container: - image: ghcr.io/anarthal/cpp-ci-containers/build-gcc14:1 + image: ghcr.io/anarthal/cpp-ci-containers/build-gcc14-lcov:1 volumes: - /var/run/mysqld:/var/run/mysqld services: @@ -29,13 +29,9 @@ jobs: volumes: - /var/run/mysqld:/var/run/mysqld steps: - - name: Install coverage packages - run: | - DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends lcov - - name: Fetch code uses: actions/checkout@v4 - + - name: Build code run: | python tools/ci/main.py \ @@ -47,7 +43,7 @@ jobs: --variant=debug \ --disable-local-sockets=off,on \ --coverage=1 - + - name: Generate coverage reports shell: bash run: | @@ -65,7 +61,7 @@ jobs: --output-file coverage.info \ --extract all.info '*/boost/mysql*' sed "s|^SF:$HOME/boost-root/|SF:include/|g" coverage.info > $GITHUB_WORKSPACE/coverage.info - + - name: Upload coverage reports uses: codecov/codecov-action@v4 with: