Skip to content

Commit

Permalink
Add CI for dart linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jasikpark committed Feb 13, 2025
1 parent ed38fdd commit 408c287
Showing 1 changed file with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Flutter format
name: Flutter check
on:
push:
branches:
- main
pull_request:
paths:
- ".github/workflows/flutterfmt.yml"
- ".github/workflows/flutterfmt.sh"
- ".github/workflows/fluttercheck.yml"
- "**.dart"
jobs:
flutterfmt:
Expand All @@ -25,3 +24,19 @@ jobs:

- name: Check formating
run: dart format -l120 lib/ --set-exit-if-changed --suppress-analytics --output none
flutterlint:
name: Run flutter lint
runs-on: ubuntu-latest
steps:
- name: Install flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.29.0"

- name: Check out code
uses: actions/checkout@v4
with:
show-progress: false

- name: Check linting
run: dart fix --dry-run

0 comments on commit 408c287

Please sign in to comment.