Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,42 @@ jobs:
- name: Cargo Miri
run: |
cargo +nightly-2024-12-17 miri test

cpp-bazel:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@0.14.0
with:
disk-cache: true
repository-cache: true
bazelisk-cache: true

- name: Bazel Build
run: bazel build //:kvs_cpp

- name: Bazel Unit Test with Coverage
run: |
bazel coverage //:test_kvs_cpp \
--collect_code_coverage \
--instrument_test_targets \
--combined_report=lcov \
--experimental_generate_llvm_lcov \
--nocache_test_results \
--nostamp

- name: Install lcov
run: |
sudo apt-get update
sudo apt-get install -y lcov

- name: Extract Coverage for kvs.cpp
run: |
REPORT=$(find "$(bazel info output_path)" -name _coverage_report.dat | head -n1)
lcov \
--rc branch_coverage=1 \
--extract "$REPORT" "src/cpp/src/kvs.cpp" \
--output-file kvs_coverage.info
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ bazel_dep(name = "score-baselibs", version = "0.0.0")
git_override(
module_name = "score-baselibs",
commit = "f0a394a602986ddf7abac6a238b9d44535a4b597",
remote = "git@github.com:eclipse-score/baselibs.git",
remote = "https://github.com/eclipse-score/baselibs.git",
)