From fcfe061d516081715c1607c6806678ddea658c64 Mon Sep 17 00:00:00 2001 From: Rd Date: Wed, 4 Sep 2024 17:13:25 +0530 Subject: [PATCH] Test run in the ci checks --- .github/workflows/static_checks.yml | 4 ++++ scripts/pre-commit.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/static_checks.yml b/.github/workflows/static_checks.yml index 15dd3e28e76..7cbb19a3248 100644 --- a/.github/workflows/static_checks.yml +++ b/.github/workflows/static_checks.yml @@ -100,6 +100,10 @@ jobs: run: | bash /home/runner/work/oppia-android/oppia-android/scripts/buildifier_lint_check.sh $HOME + - name: Binary files check + run: | + bash /home/runner/work/oppia-android/oppia-android/scripts/pre-commit.sh + script_checks: name: Script Checks runs-on: ubuntu-20.04 diff --git a/scripts/pre-commit.sh b/scripts/pre-commit.sh index df8dc82fcee..905fd4a023b 100644 --- a/scripts/pre-commit.sh +++ b/scripts/pre-commit.sh @@ -13,6 +13,7 @@ changed_files=$(git diff --name-only "$base_commit" HEAD) # Combine both lists of files, ensuring no duplicates all_files=$(echo -e "$staged_files\n$changed_files" | sort -u) +echo "$all_files" function checkForBinaries() { binaryFilesCount=0