Skip to content

Commit

Permalink
Upgrade melos to v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed May 16, 2024
1 parent b9ca666 commit 52d0a8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ jobs:
channel: ${{ inputs.flutter_channel }}
- uses: bluefireteam/melos-action@main

- run: melos run format-check
- run: melos run analyze -- ${{ inputs.fatal_warnings && '--fatal-infos' || '--no-fatal-warnings --no-fatal-infos' }}
- run: melos format --set-exit-if-changed
- run: melos analyze ${{ inputs.fatal_warnings && '--fatal-infos' || '--no-fatal-warnings' }}
- run: melos run test

- name: Lint Code Base
Expand Down
14 changes: 1 addition & 13 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,9 @@ command:

scripts:
lint:
run: melos run analyze && melos run format
run: melos analyze && melos format
description: Run all static analysis checks.

analyze:
run: melos exec -c 10 flutter analyze
description: Run `flutter analyze` for all packages.

format:
run: melos exec dart format . --fix
description: Run `dart format` for all packages.

format-check:
run: melos exec dart format . --set-exit-if-changed
description: Run `dart format` checks for all packages.

dartdoc:
run: melos exec dart doc
description: Run `dart doc` for all non-example packages.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ environment:
sdk: '>=3.0.0 <4.0.0'

dev_dependencies:
melos: ^3.0.0
melos: ^6.0.0

0 comments on commit 52d0a8c

Please sign in to comment.