Skip to content
Back to skills

Flutter Cicd

ASecurity

A good PR workflow for Flutter should fail fast, cache the expensive parts, and produce the Android artifact only after analysis and tests pass. For pull requests, I would structure it in this order: 1. Check out the repo. 2. Install a stable Flutter SDK. 3. Cache Pub packages and Gradle state. 4. Run formatting/analyze checks first. 5. Run tests. 6. Build the Android App Bundle (`.aab`). 7. Upload the build artifact so reviewers can inspect or reuse it. Example GitHub Actions workflow: ```ya...

  • 584 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
developmentgojavatestinggitci/cd

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill flutter-cicd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flutter Cicd?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Flutter Cicd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-flutter-cicd-agent-skills-standard/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-flutter-cicd-agent-skills-standard)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
A good PR workflow for Flutter should fail fast, cache the expensive parts, and produce the Android artifact only after analysis and tests pass. For pull requests, I would structure it in this order:

1. Check out the repo.
2. Install a stable Flutter SDK.
3. Cache Pub packages and Gradle state.
4. Run formatting/analyze checks first.
5. Run tests.
6. Build the Android App Bundle (`.aab`).
7. Upload the build artifact so reviewers can inspect or reuse it.

Example GitHub Actions workflow:

```yaml
name: flutter-pr-ci

on:
  pull_request:
    branches:
      - main

jobs:
  verify-and-build:
    runs-on: ubuntu-latest
    timeout-minutes: 30

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Set up Java
        uses: actions/setup-java@v4
        with:
          distribution: temurin
          java-version: 17

      - name: Set up Flutter
        uses: subosito/flutter-action@v2
        with:
          channel: stable
          cache: true

      - name: Restore pub dependencies
        run: flutter pub get

      - name: Check formatting
        run: dart format --output=none --set-exit-if-changed .

      - name: Static analysis
        run: flutter analyze

      - name: Run tests
        run: flutter test --coverage

      - name: Build Android App Bundle
        run: flutter build appbundle --release

      - name: Upload AAB artifact
        uses: actions/upload-artifact@v4
        with:
          name: android-aab
          path: build/app/outputs/bundle/release/*.aab
```

Why this matches solid Flutter CI/CD practice:

- It uses the stable Flutter channel.
- It caches Flutter dependencies to reduce repeated setup cost.
- It runs format and analyze before tests/builds, so cheap failures happen early.
- It enforces automated testing on every PR.
- It builds the Play Store artifact format (`.aab`) rather than only an APK.
- It sets `timeout-minutes` so hung runners do not waste CI time.

Recommended additions if the repo is larger:

- Split `analyze`, `test`, and `build` into separate jobs so build only runs after quality gates pass.
- Cache Gradle explicitly if Android dependency resolution is slow.
- Upload coverage to Codecov if the team tracks test coverage.
- If integration tests exist, run them in a separate job so unit/widget feedback stays fast.

In short: use one PR-triggered workflow that installs stable Flutter, caches dependencies, runs `dart format`, `flutter analyze`, `flutter test`, and then builds `flutter build appbundle --release` with a job timeout and artifact upload.

Files in this skill

  • eval-1.baseline.md2.1 KB
  • eval-1.with-skill.md2.5 KB
  • eval-2.baseline.md3 KB
  • eval-2.with-skill.md3.2 KB
  • eval-3.baseline.md2.1 KB
  • eval-3.with-skill.md2.2 KB
  • trigger-1.md169 B
  • trigger-2.md152 B
  • trigger-3.md154 B
  • trigger-4.md163 B
  • trigger-5.md161 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.