From c8f12b3656a543dfe1529127559efcf1a0a592db Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Fri, 16 Aug 2024 21:54:27 +0200 Subject: [PATCH] ci: On-demand auto-formatter (#5547) * ci: On-demand auto-formatter * Apply suggestions from code review --- .github/workflows/on-demand.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on-demand.yml b/.github/workflows/on-demand.yml index 2161cd4b2cd..80f2d658b4f 100644 --- a/.github/workflows/on-demand.yml +++ b/.github/workflows/on-demand.yml @@ -38,8 +38,23 @@ jobs: run: | git remote set-branches --add origin develop git fetch origin - - name: Run linting - run: XXXXXXXX + - name: Setup Flutter + uses: subosito/flutter-action@v2 + with: + #channel: stable + cache: true + flutter-version: ${{ steps.flutter-version.outputs.FLUTTER_VERSION }} + cache-key: flutter-${{ hashFiles('flutter-version.txt')}}-${{ hashFiles('packages\smooth_app\pubspec.lock')}} + + - run: flutter --version + + # Get dependencies + - name: Get dependencies + run: ci/pub_upgrade.sh + + # Check for formatting issues and fix them + - name: Check for formatting issues (run "dart format . ") + run: dart format . - name: Push changes if needed uses: stefanzweifel/git-auto-commit-action@v5 with: