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 1271bb1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
11 changes: 7 additions & 4 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
- name: Run Code Analysis
run: melos run analyse --no-select
17 changes: 15 additions & 2 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,26 @@ 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:
fileExists: pubspec.yaml
generate:
name: Generate Files
description: Generates files using build runner.
run: flutter pub run build_runner build --delete-conflicting-outputs
packageFilters:
fileExists: pubspec.yaml
dependsOn: build_runner

0 comments on commit 1271bb1

Please sign in to comment.