From 65340c7667c65779d1e0efc74f09b7c79afa14c5 Mon Sep 17 00:00:00 2001 From: dtor Date: Wed, 29 Jan 2025 18:15:43 +0000 Subject: [PATCH] ci: update coverage actions to calculate coverage with baseline --- .github/workflows/coverage.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 737e7409..5bc4ab34 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -16,5 +16,18 @@ 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" \ + -s shell: bash