2021-05-03 21:55:51 +00:00
|
|
|
name: Flutter format
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/flutterfmt.yml'
|
|
|
|
- '.github/workflows/flutterfmt.sh'
|
|
|
|
- '**.dart'
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
gofmt:
|
|
|
|
name: Run flutter format
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Install flutter
|
2023-05-12 17:42:58 +00:00
|
|
|
uses: subosito/flutter-action@v2
|
2021-05-03 21:55:51 +00:00
|
|
|
with:
|
2024-09-20 18:19:23 +00:00
|
|
|
flutter-version: '3.24.1'
|
2021-05-03 21:55:51 +00:00
|
|
|
|
|
|
|
- name: Check out code
|
2023-05-12 17:42:58 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-05-03 21:55:51 +00:00
|
|
|
|
2024-09-27 18:15:54 +00:00
|
|
|
- name: Check formating
|
|
|
|
run: dart format -l120 lib/ test/ --set-exit-if-changed --suppress-analytics
|