Skip to content

Commit 5cc8fa1

Browse files
committed
dart tools reusable action.
1 parent 3b46c6b commit 5cc8fa1

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
shell: bash
22+
run: dart pub global activate mason_cli
23+
24+
- name: Add pub-cache bin to PATH
25+
shell: bash
26+
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
27+

0 commit comments

Comments
 (0)