Skip to content

Commit

Permalink
ci: update coverage actions to calculate coverage with baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
danctorres committed Jan 29, 2025
1 parent 19b814d commit 2300955
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,17 @@ jobs:
uses: actions/checkout@v4

- name: Run Coverage Script
run: bazelisk run //tools/coverage:lcov --platforms=//bazel/platforms:x86_64_linux -- -t :unit_tests
run: |
BAZEL_BIN=$(bazel info bazel-bin)
TEST_LOGS=$(bazel info bazel-testlogs)
echo "Bazel bin directory: $BAZEL_BIN"
echo "Test logs directory: $TEST_LOGS"
bazelisk run //tools/coverage:lcov \
--platforms=//bazel/platforms:x86_64_linux -- \
-b //... \
-t //:unit_tests \
-c "$BAZEL_BIN" \
-d "$TEST_LOGS"
shell: bash

0 comments on commit 2300955

Please sign in to comment.