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
|
|
|
|
uses: subosito/flutter-action@v1
|
|
|
|
with:
|
2022-10-27 17:12:12 +00:00
|
|
|
flutter-version: '3.3.5'
|
2021-05-03 21:55:51 +00:00
|
|
|
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: flutter format
|
|
|
|
run: $GITHUB_WORKSPACE/.github/workflows/flutterfmt.sh
|