diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b2a6a56a984..6ddea6fef00 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -15,7 +15,7 @@ jobs: check: # Don't run on private repo. if: github.repository == 'Firebase/firebase-ios-sdk' - runs-on: macos-14 + runs-on: ubuntu-latest env: MINT_PATH: ${{ github.workspace }}/mint steps: @@ -33,7 +33,13 @@ jobs: restore-keys: ${{ runner.os }}-mint- - name: Setup check - run: scripts/setup_check.sh + run: | + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + scripts/setup_check.sh - name: Check - run: scripts/check.sh --test-only + run: | + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + # Add Homebrew clang-format to first in PATH + export PATH="/home/linuxbrew/.linuxbrew/opt/clang-format/bin:$PATH" + scripts/check.sh --test-only diff --git a/scripts/check.sh b/scripts/check.sh index 59cad32aa93..6e98cd089f0 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -290,7 +290,7 @@ python --version "${top_dir}/scripts/check_filename_spaces.sh" "${top_dir}/scripts/check_copyright.sh" "${top_dir}/scripts/check_test_inclusion.py" -"${top_dir}/scripts/check_imports.swift" +swift "${top_dir}/scripts/check_imports.swift" # Google C++ style lint_cmd=("${top_dir}/scripts/check_lint.py")