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-10-07 15:38:00 +00:00
|
|
|
- name: Check formating
|
2024-10-17 13:38:50 +00:00
|
|
|
run: dart format -l120 lib/ --set-exit-if-changed --suppress-analytics --output none
|