forked from c-ares/c-ares
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.07 KB
/
coveralls.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright (C) The c-ares project and its contributors
# SPDX-License-Identifier: MIT
name: Coveralls
on:
push:
pull_request:
jobs:
build:
name: Coveralls
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: lcov libgmock-dev ninja-build
version: 1.0
- name: Build
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=DEBUG -DCARES_BUILD_CONTAINER_TESTS=ON -DCARES_COVERAGE=ON -DCARES_BUILD_TOOLS=OFF -G Ninja ..
ninja
- name: Test
shell: bash
run: |
cd build
./bin/arestest -v --gtest_filter='-*LiveSearchTXT*:*LiveSearchANY*:*LiveSearchNS*'
- name: Generate Coverage
shell: bash
run: |
cd build
ninja coverage
- name: Upload to Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: ${{runner.workspace}}/c-ares/build/coverage.info
github-token: ${{ secrets.GITHUB_TOKEN }}