Skip to content

Commit 547dfbf

Browse files
committed
wip: Update lint workflow
1 parent 92e6a90 commit 547dfbf

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/lint.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: lint
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, dev]
66
pull_request:
7-
types: [opened, reopened]
7+
branches: [main]
88

99
jobs:
1010
analyze:
@@ -13,24 +13,19 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: subosito/flutter-action@v2
1515
with:
16+
flutter-version: "3.24.3"
1617
channel: "stable"
17-
- run: flutter analyze --fatal-infos
18+
- uses: bluefireteam/melos-action@v3
19+
- run: melos run analyze
1820

1921
format:
2022
runs-on: ubuntu-latest
2123
steps:
2224
- uses: actions/checkout@v3
2325
- uses: subosito/flutter-action@v2
2426
with:
27+
flutter-version: "3.24.3"
2528
channel: "stable"
26-
- run: dart format . --fix --set-exit-if-changed
27-
28-
dependency_validator:
29-
runs-on: ubuntu-latest
30-
steps:
31-
- uses: actions/checkout@v3
32-
- uses: subosito/flutter-action@v2
33-
with:
34-
channel: "stable"
35-
- run: flutter pub get
36-
- run: flutter pub run dependency_validator
29+
cache: true
30+
- uses: bluefireteam/melos-action@v3
31+
- run: melos run format-check

0 commit comments

Comments
 (0)