Skip to content

Commit

Permalink
wip: Update lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Oct 27, 2024
1 parent 92e6a90 commit 547dfbf
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: lint

on:
push:
branches: [main]
branches: [main, dev]
pull_request:
types: [opened, reopened]
branches: [main]

jobs:
analyze:
Expand All @@ -13,24 +13,19 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.3"
channel: "stable"
- run: flutter analyze --fatal-infos
- uses: bluefireteam/melos-action@v3
- run: melos run analyze

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.3"
channel: "stable"
- run: dart format . --fix --set-exit-if-changed

dependency_validator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter pub get
- run: flutter pub run dependency_validator
cache: true
- uses: bluefireteam/melos-action@v3
- run: melos run format-check

0 comments on commit 547dfbf

Please sign in to comment.