From b251288ae9e9d7d47f974620c11f5ab03dfa5f82 Mon Sep 17 00:00:00 2001 From: Rd Date: Sat, 10 Aug 2024 21:47:06 +0530 Subject: [PATCH] Adding setup bazel actions --- .github/workflows/code_coverage.yml | 5 +++++ .../org/oppia/android/scripts/coverage/CoverageReporter.kt | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index da0e7ed70e5..e406820abe4 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -266,6 +266,11 @@ jobs: PB_FILES_LIST=($(find . -name "coverage_report.pb" -type f -print0 | xargs -0 -n 1 echo)) echo "PB FILES: $PB_FILES_LIST" + - name: Set up Bazel + uses: abhinavsingh/setup-bazel@v3 + with: + version: 6.5.0 + - name: Generate Markdown Coverage Report run: | bazel run //scripts:coverage_reporter -- $(pwd) $PB_FILES_LIST diff --git a/scripts/src/java/org/oppia/android/scripts/coverage/CoverageReporter.kt b/scripts/src/java/org/oppia/android/scripts/coverage/CoverageReporter.kt index 84143d525ae..1ae5e742232 100644 --- a/scripts/src/java/org/oppia/android/scripts/coverage/CoverageReporter.kt +++ b/scripts/src/java/org/oppia/android/scripts/coverage/CoverageReporter.kt @@ -93,6 +93,7 @@ class CoverageReporter( .associateBy { it.exemptedFilePath } } + /** * Generates a rich text report for the analysed coverage data based on the specified format. * It supports Markdown and HTML formats.