Skip to content

Commit 81ab6f9

Browse files
authored
[CI] Run check workflow on Ubuntu (#14534)
1 parent fe3ee90 commit 81ab6f9

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/check.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
check:
1616
# Don't run on private repo.
1717
if: github.repository == 'Firebase/firebase-ios-sdk'
18-
runs-on: macos-14
18+
runs-on: ubuntu-latest
1919
env:
2020
MINT_PATH: ${{ github.workspace }}/mint
2121
steps:
@@ -33,7 +33,13 @@ jobs:
3333
restore-keys: ${{ runner.os }}-mint-
3434

3535
- name: Setup check
36-
run: scripts/setup_check.sh
36+
run: |
37+
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
38+
scripts/setup_check.sh
3739
3840
- name: Check
39-
run: scripts/check.sh --test-only
41+
run: |
42+
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
43+
# Add Homebrew clang-format to first in PATH
44+
export PATH="/home/linuxbrew/.linuxbrew/opt/clang-format/bin:$PATH"
45+
scripts/check.sh --test-only

scripts/check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ python --version
290290
"${top_dir}/scripts/check_filename_spaces.sh"
291291
"${top_dir}/scripts/check_copyright.sh"
292292
"${top_dir}/scripts/check_test_inclusion.py"
293-
"${top_dir}/scripts/check_imports.swift"
293+
swift "${top_dir}/scripts/check_imports.swift"
294294

295295
# Google C++ style
296296
lint_cmd=("${top_dir}/scripts/check_lint.py")

0 commit comments

Comments
 (0)