A C library for asynchronous DNS requests (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

# 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 }}