diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 4db22af..825e26e 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -63,3 +63,12 @@ jobs: lcov --directory . --gcov-tool llvm_gcov.sh --capture --output-file coverage.info lcov --remove coverage.info '/usr/*' "$GITHUB_WORKSPACE"'/extern/*' --output-file coverage.info lcov --list coverage.info + + - uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + with: + fail_ci_if_error: true + files: ./build/coverage.info + name: repo-template + diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 0000000..2e29efd --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,7 @@ +comment: + layout: "diff, files" + behavior: default + require_changes: false + require_base: false + require_head: true + hide_project_coverage: false