mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2026-01-01 03:12:13 +08:00
- Add codecov.yml configuration to exclude 3rdparty, test, and demo directories - Update GitHub Actions workflow with exclude parameter in codecov-action - Ensures only project source code is included in coverage metrics This provides double protection: 1. codecov.yml filters on CodeCov service side 2. workflow exclude filters during upload
38 lines
713 B
YAML
38 lines
713 B
YAML
name: Upload CodeCov Report
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Configure
|
|
run: cmake -DCMAKE_BUILD_TYPE=Debug -DLIBIPC_BUILD_TESTS=ON -DLIBIPC_CODECOV=ON .
|
|
|
|
- name: Build
|
|
run: make -j
|
|
|
|
- name: Test
|
|
env:
|
|
LD_LIBRARY_PATH: ./bin
|
|
run: ./bin/test-ipc
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v4.0.1
|
|
with:
|
|
verbose: true
|
|
exclude: |
|
|
3rdparty/**
|
|
test/**
|
|
demo/**
|
|
env:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |