Skip to content

Commit cfdc712

Browse files
committed
Update macOS CI to use flutter-action and set version
Replaces manual Flutter installation with subosito/flutter-action, sets FLUTTER_VERSION to 3.32.8, and simplifies the workflow. This improves maintainability and ensures consistent Flutter setup in CI.
1 parent 56dd15c commit cfdc712

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/macos-integration-tests.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,37 @@ on:
44
push:
55
pull_request:
66

7+
env:
8+
FLUTTER_VERSION: "3.32.8"
9+
710
jobs:
811
test-macos:
912
runs-on: macos-14
10-
env:
11-
HOMEBREW_NO_AUTO_UPDATE: "1"
12-
1313
steps:
14-
- name: Check out repository
15-
uses: actions/checkout@v4
14+
- uses: actions/checkout@v4
1615

1716
- name: Install CocoaPods
1817
run: brew install cocoapods
1918

19+
- name: Setup Flutter
20+
uses: subosito/flutter-action@v2
21+
with:
22+
flutter-version: ${{ env.FLUTTER_VERSION }}
23+
channel: stable
24+
cache: true
25+
2026
- name: Install uv
2127
shell: bash
2228
run: |
2329
curl -LsSf https://astral.sh/uv/install.sh | sh
2430
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
2531
26-
- name: Install Flutter via repo scripts
27-
shell: bash
28-
run: |
29-
set -euo pipefail
30-
source ci/common.sh
31-
source ci/install_flutter.sh
32-
flutter --version
33-
3432
- name: Show tool versions
3533
run: |
3634
python3 --version
3735
uv --version
3836
pod --version
37+
flutter --version
3938
4039
- name: Run integration tests
4140
working-directory: sdk/python

0 commit comments

Comments
 (0)