1 parent 3b46c6b commit 5cc8fa1Copy full SHA for 5cc8fa1
1 file changed
.github/workflows/setup-dart-tools.yml
@@ -0,0 +1,27 @@
1
+name: "Setup Dart tools"
2
+description: "Setup Dart SDK, install Melos and Mason, add pub-cache bin to PATH"
3
+inputs:
4
+ sdk:
5
+ description: "Dart SDK version"
6
+ required: false
7
+ default: "stable"
8
+runs:
9
+ using: "composite"
10
+ steps:
11
+ - name: Setup Dart
12
+ uses: dart-lang/setup-dart@v1
13
+ with:
14
+ sdk: ${{ inputs.sdk }}
15
+
16
+ - name: Install Melos
17
+ shell: bash
18
+ run: dart pub global activate melos
19
20
+ - name: Install Mason CLI
21
22
+ run: dart pub global activate mason_cli
23
24
+ - name: Add pub-cache bin to PATH
25
26
+ run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
27
0 commit comments