Skip to content

Commit

Permalink
🔧 Make melos configured for GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 5, 2023
1 parent 656bbcd commit 730af32
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,27 @@ ide:
intellij:
enabled: true
moduleNamePrefix: ''

command:
bootstrap:
runPubGetInParallel: false

scripts:
files-patch: # Apply files patches for different versions of SDKs.
run: |
dart $MELOS_ROOT_PATH/scripts/files_patch.dart
pre-bootstrap: # Filtering available packages that need to be bootstrapped.
run: |
export MELOS_PACKAGES=$(dart $MELOS_ROOT_PATH/scripts/melos_packages.dart true)
melos bootstrap
github-ci: # Executions for GitHub Action runners.
run: |
export MELOS_IGNORE_PACKAGES=$(dart $MELOS_ROOT_PATH/scripts/melos_packages.dart false)
melos exec $(eval echo $MELOS_IGNORE_PACKAGES) -- "dart format --set-exit-if-changed ."
melos exec $(eval echo $MELOS_IGNORE_PACKAGES) --no-flutter -- "dart analyze --fatal-infos"
melos exec $(eval echo $MELOS_IGNORE_PACKAGES) --flutter -- "flutter analyze --fatal-infos"
melos exec $(eval echo $MELOS_IGNORE_PACKAGES) --ignore="*example*" -- "dart pub publish --dry-run"
melos exec $(eval echo $MELOS_IGNORE_PACKAGES) --ignore="*example*" --no-flutter -- "dart test --chain-stack-traces --platform=vm,chrome,firefox"
melos exec $(eval echo $MELOS_IGNORE_PACKAGES) --ignore="*example*" --flutter -- "flutter test"

0 comments on commit 730af32

Please sign in to comment.