Skip to content

Commit

Permalink
Update dart-analyzer workflow and Add install-flutter script
Browse files Browse the repository at this point in the history
  • Loading branch information
LucJosin committed Apr 11, 2023
1 parent 82c3f72 commit fbb8c5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/dart-analyzer.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Scripts:
# * fluttercommunity/plus_plugins/.github/workflows/scripts/install-tools.sh
# * fluttercommunity/plus_plugins/.github/workflows/scripts/install-flutter.sh

name: Dart Analyzer
on:
push:
Expand All @@ -18,10 +22,10 @@ jobs:
sdk: "2.18.0"
- name: Install dependencies
run: dart pub get
# fluttercommunity/plus_plugins/.github/workflows/scripts/install-tools.sh
- name: "Install flutter"
run: ./.github/workflows/scripts/install-flutter.sh
- name: "Install tools"
run: |
./.github/workflows/scripts/install-tools.sh
run: ./.github/workflows/scripts/install-tools.sh
- name: "Bootstrap workspace (Melos)"
run: melos bootstrap
- name: "Run Dart Analyze"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/scripts/install-flutter.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

git clone https://github.com/flutter/flutter.git --depth 1 -b stable _flutter
echo "$GITHUB_WORKSPACE/_flutter/bin" >> $GITHUB_PATH

0 comments on commit fbb8c5a

Please sign in to comment.