Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ name: coverage
on:
push:
branches: [develop, master]
tags: ['*']
tags: ["*"]
pull_request:
workflow_dispatch:

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:
Expand All @@ -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 \
Expand All @@ -47,7 +43,7 @@ jobs:
--variant=debug \
--disable-local-sockets=off,on \
--coverage=1

- name: Generate coverage reports
shell: bash
run: |
Expand All @@ -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:
Expand Down
Loading