Skip to content

Commit c20a041

Browse files
authored
Changes the coverage build to use a dedicate Docker container (#504)
1 parent 3ccd20d commit c20a041

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ name: coverage
1010
on:
1111
push:
1212
branches: [develop, master]
13-
tags: ['*']
13+
tags: ["*"]
1414
pull_request:
1515
workflow_dispatch:
1616

1717
jobs:
1818
coverage:
1919
runs-on: ubuntu-latest
2020
container:
21-
image: ghcr.io/anarthal/cpp-ci-containers/build-gcc14:1
21+
image: ghcr.io/anarthal/cpp-ci-containers/build-gcc14-lcov:1
2222
volumes:
2323
- /var/run/mysqld:/var/run/mysqld
2424
services:
@@ -29,13 +29,9 @@ jobs:
2929
volumes:
3030
- /var/run/mysqld:/var/run/mysqld
3131
steps:
32-
- name: Install coverage packages
33-
run: |
34-
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends lcov
35-
3632
- name: Fetch code
3733
uses: actions/checkout@v4
38-
34+
3935
- name: Build code
4036
run: |
4137
python tools/ci/main.py \
@@ -47,7 +43,7 @@ jobs:
4743
--variant=debug \
4844
--disable-local-sockets=off,on \
4945
--coverage=1
50-
46+
5147
- name: Generate coverage reports
5248
shell: bash
5349
run: |
@@ -65,7 +61,7 @@ jobs:
6561
--output-file coverage.info \
6662
--extract all.info '*/boost/mysql*'
6763
sed "s|^SF:$HOME/boost-root/|SF:include/|g" coverage.info > $GITHUB_WORKSPACE/coverage.info
68-
64+
6965
- name: Upload coverage reports
7066
uses: codecov/codecov-action@v4
7167
with:

0 commit comments

Comments
 (0)