mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-22 19:15:27 +00:00
Add CI for dart linting
This commit is contained in:
parent
beaf23c560
commit
8d7c1df1bc
1 changed files with 18 additions and 3 deletions
|
@ -1,12 +1,11 @@
|
||||||
name: Flutter format
|
name: Flutter check
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/flutterfmt.yml'
|
- '.github/workflows/fluttercheck.yml'
|
||||||
- '.github/workflows/flutterfmt.sh'
|
|
||||||
- '**.dart'
|
- '**.dart'
|
||||||
jobs:
|
jobs:
|
||||||
flutterfmt:
|
flutterfmt:
|
||||||
|
@ -25,3 +24,19 @@ jobs:
|
||||||
|
|
||||||
- name: Check formating
|
- name: Check formating
|
||||||
run: dart format -l120 lib/ --set-exit-if-changed --suppress-analytics --output none
|
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
|
Loading…
Reference in a new issue