Agent-skills-standard flutter-cicd
Set up Continuous Integration and Deployment pipelines for Flutter apps. Use when setting up CI/CD pipelines, automated testing, or deployment workflows for Flutter. (triggers: .github/workflows/**.yml, fastlane/**, android/fastlane/**, ios/fastlane/**, ci, cd, pipeline, build, deploy, release, action, workflow)
install
source · Clone the upstream repo
git clone https://github.com/HoangNguyen0403/agent-skills-standard
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/HoangNguyen0403/agent-skills-standard "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/flutter/flutter-cicd" ~/.claude/skills/hoangnguyen0403-agent-skills-standard-flutter-cicd && rm -rf "$T"
manifest:
skills/flutter/flutter-cicd/SKILL.mdsource content
CI/CD Standards
Priority: P1 (HIGH)
Core Pipeline Steps
- Environment Setup: Use stable Flutter channel. Cache dependencies (pub, gradle, cocoapods).
- Static Analysis: Enforce
andflutter analyze
. Fail on any warning in strict mode.dart format - Testing: Run unit, widget, and integration tests. Upload coverage reports (e.g., Codecov).
- Build:
- Android: Build App Bundle (
) for Play Store..aab - iOS: Sign and build
(requires macOS runner)..ipa
- Deployment (CD): Automated upload to TestFlight/Play Console using standard tools (Fastlane, Codemagic).
Best Practices
- Timeout Limits: Always set
(e.g., 30m) to save costs on hung jobs.timeout-minutes - Fail Fast: Run Analyze/Format before Tests/Builds.
- Secrets: Never commit keys. Use GitHub Secrets or secure vaults for
andkeystore.jks
certs..p8 - Versioning: Automate version bumping based on git tags or semantic version scripts.
Reference
- GitHub Actions Template - Standard workflow file.
- Advanced Large-Scale Workflow - Parallel jobs, Caching, Strict Mode.
- Fastlane Standards - Automated Signing & Deployment.
Anti-Patterns
- No Secrets in Repo: Store
,keystore.jks
, and.p8
in GitHub Secrets.env - No Uncapped Jobs: Always set
(e.g., 30m) to save runner minutestimeout-minutes - No Manual Versioning: Automate
versioning via git tags or scriptspubspec.yaml - No Late Analysis: Run
before builds/tests for fast failureflutter analyze
Related Topics
flutter/testing | dart/tooling