From 7a1cb0bb6d25cd453f05b865a0fb4867bc3996ae Mon Sep 17 00:00:00 2001 From: James Clancey Date: Mon, 13 Apr 2026 15:20:04 -0800 Subject: [PATCH] Add Flutter/Dart CI workflow Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/flutter-ci.yml | 68 ++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/flutter-ci.yml diff --git a/.github/workflows/flutter-ci.yml b/.github/workflows/flutter-ci.yml new file mode 100644 index 00000000..39f024dd --- /dev/null +++ b/.github/workflows/flutter-ci.yml @@ -0,0 +1,68 @@ +name: Flutter CI + +on: + push: + branches: [main] + paths: + - 'flutter_module/**' + - 'flutter_sharp/**' + - '.github/workflows/flutter-ci.yml' + pull_request: + branches: [main] + paths: + - 'flutter_module/**' + - 'flutter_sharp/**' + - '.github/workflows/flutter-ci.yml' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: subosito/flutter-action@v2 + with: + channel: stable + cache: true + + - name: Get dependencies + working-directory: flutter_module + run: flutter pub get + + - name: Analyze + working-directory: flutter_module + run: flutter analyze + + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: subosito/flutter-action@v2 + with: + channel: stable + cache: true + + - name: Get dependencies + working-directory: flutter_module + run: flutter pub get + + - name: Run tests + working-directory: flutter_module + run: flutter test + + format-check: + name: Format Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: subosito/flutter-action@v2 + with: + channel: stable + cache: true + + - name: Check formatting + run: dart format --output=none --set-exit-if-changed flutter_module/lib/