From 011b97b1bfd5df3b996ed43dd52dcdb4f2b967f9 Mon Sep 17 00:00:00 2001 From: Gold87 <91761103+Gold872@users.noreply.github.com> Date: Thu, 18 Jul 2024 16:33:00 -0400 Subject: [PATCH] Added CI check for import sorting --- .github/workflows/elastic-ci.yml | 3 +++ pubspec.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/elastic-ci.yml b/.github/workflows/elastic-ci.yml index 836a34fa..2cc8aa1f 100644 --- a/.github/workflows/elastic-ci.yml +++ b/.github/workflows/elastic-ci.yml @@ -40,6 +40,9 @@ jobs: - name: Verify formatting run: dart format --output=none --set-exit-if-changed lib/* test/* + - name: Verify import sorting + run: dart run import_sorter:main --exit-if-changed + - name: Analyze project source run: flutter analyze --no-fatal-infos --no-fatal-warnings test: diff --git a/pubspec.yaml b/pubspec.yaml index 65b96118..4f9e7ee0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -67,6 +67,8 @@ flutter: import_sorter: comments: false + ignored_files: + - /*.mocks.dart flutter_launcher_icons: image_path: "assets/logos/logo.png"