Skip to content

Commit 1be6783

Browse files
committed
Update CI workflow to use melos run commands for formatting and analysis.
Add new scripts for analyze-all and format-all in melos.yaml for improved package management.
1 parent 4731725 commit 1be6783

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/flutter_ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
run-bootstrap: true
2323
- name: Lint analysis
24-
run: melos format --set-exit-if-changed .
24+
run: melos run format-all
2525

2626
lint:
2727
name: "Static code analysis"
@@ -36,7 +36,7 @@ jobs:
3636
with:
3737
run-bootstrap: true
3838
- name: Lint analysis
39-
run: melos analyze --fatal-warnings --fatal-infos --concurrency 10
39+
run: melos run analyze-all
4040

4141
test:
4242
name: "Run tests"
@@ -50,7 +50,7 @@ jobs:
5050
- uses: bluefireteam/melos-action@v3
5151
with:
5252
run-bootstrap: true
53-
- run: melos test:io
53+
- run: melos run test:io
5454

5555
test-web:
5656
name: "Run web tests"
@@ -64,7 +64,7 @@ jobs:
6464
- uses: bluefireteam/melos-action@v3
6565
with:
6666
run-bootstrap: true
67-
- run: melos test:web
67+
- run: melos run test:web
6868

6969
code-gen:
7070
name: "Generate code from templates"
@@ -78,8 +78,8 @@ jobs:
7878
- uses: bluefireteam/melos-action@v3
7979
with:
8080
run-bootstrap: true
81-
- run: melos generate
82-
- run: melos format
81+
- run: melos run generate
82+
- run: melos run format-all
8383
- name: Check Git changes
8484
uses: multani/git-changes-action@v1
8585

melos.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ scripts:
2929
exec: flutter test --platform chrome
3030
packageFilters:
3131
scope: maplibre_gl_platform_interface
32+
33+
analyze-all:
34+
description: Run static analysis on all packages
35+
exec: analyze --fatal-warnings --fatal-infos --concurrency 10
36+
37+
format-all:
38+
description: Format all packages
39+
exec: format --set-exit-if-changed .

0 commit comments

Comments
 (0)