Skip to content

Commit d5f1e22

Browse files
grdsdevclaude
andcommitted
fix(ci): use Flutter action instead of Dart in reusable workflow
The reusable workflow was failing for packages because melos bootstrap needs Flutter to be available in the environment to bootstrap the entire workspace, even when testing Dart-only packages. Changed from dart-lang/setup-dart to subosito/flutter-action which includes Dart and has built-in caching. This fixes the error: /bin/sh: 1: eval: flutter: not found 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent b0294c5 commit d5f1e22

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/dart-package-test.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,11 @@ jobs:
5151
- name: Checkout repository
5252
uses: actions/checkout@v4
5353

54-
- name: Setup Dart
55-
uses: dart-lang/setup-dart@v1
54+
- name: Setup Flutter (includes Dart)
55+
uses: subosito/flutter-action@v2
5656
with:
57-
sdk: ${{ matrix.sdk }}
58-
59-
- name: Cache pub dependencies
60-
uses: actions/cache@v4
61-
with:
62-
path: |
63-
${{ env.PUB_CACHE }}
64-
~/.pub-cache
65-
key: ${{ runner.os }}-pub-${{ matrix.sdk }}-${{ hashFiles('**/pubspec.lock') }}
66-
restore-keys: |
67-
${{ runner.os }}-pub-${{ matrix.sdk }}-
68-
${{ runner.os }}-pub-
57+
channel: ${{ matrix.sdk }}
58+
cache: true
6959

7060
- name: Bootstrap workspace
7161
run: |

0 commit comments

Comments
 (0)