Skip to content

Commit

Permalink
✨ Update git analysis flow to use melos
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthBaraiya committed Nov 20, 2023
1 parent 7b5dcca commit 10a7197
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/flutter_analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jobs:
- name: Install Flutter
uses: britannio/[email protected]

- name: Install melos
run: dart pub global activate melos

- name: Install dependencies
run: flutter pub get
run: melos run get --no-select

- name: Generate assets and other files
run: flutter pub run build_runner build --delete-conflicting-outputs
run: melos run generate --no-select

- name: Run Code Anlysis
run: flutter analyze
run: melos run analyse --no-select
10 changes: 8 additions & 2 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ scripts:
get:
name: Get Dependencies
description: Fetches the pub dependency for current and underlying projects.
exec: dart pub get
run: dart pub get
packageFilters:
fileExists: pubspec.yaml
clean:
name: Clean Project Data
description: Cleans current and underlying projects.
exec: flutter clean
run: flutter clean
packageFilters:
fileExists: pubspec.yaml
flutter: true
analyse:
name: Analyse Projects
description: Analyses all the projects and throws respective errors if analysis fails.
run: flutter analyze
packageFilters:
flutter: true

0 comments on commit 10a7197

Please sign in to comment.