Skip to content

Commit d4920e4

Browse files
Dillon Nysragingsquirrel3
authored andcommitted
ci: Add flutter to PATH for docs work
Some Dart packages require Flutter to be available, for example `amplify_core` requires it for its `doc` package.
1 parent fd39ba2 commit d4920e4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/dart_vm.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,26 @@ jobs:
4444
- name: Git Submodules
4545
run: git submodule update --init
4646

47+
# Some Dart packages require Flutter to be available, for example `amplify_core`
48+
# requires it for its `doc` package. Running this before "Setup Dart" means that
49+
# the `dart` executable in PATH will always be the one setup by "Setup Dart".
50+
#
51+
# TODO(dnys1): Create mapping of Flutter->Dart versions so we can just use Dart
52+
# vended by Flutter.
53+
- name: Setup Flutter
54+
uses: subosito/flutter-action@dbf1fa04f4d2e52c33185153d06cdb5443aa189d # 2.8.0
55+
with:
56+
cache: true
57+
channel: stable
58+
4759
- name: Setup Dart
4860
uses: dart-lang/setup-dart@007c7cbb377cdbdf8922e2f8c4172dc60fbaaf9a # main
4961
with:
5062
sdk: ${{ matrix.sdk }}
5163

64+
- name: Dart Version
65+
run: dart --version
66+
5267
- name: Setup aft
5368
shell: bash # Run in bash regardless of platform
5469
run: |

0 commit comments

Comments
 (0)