金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

cicd

cicd 是面向效率工具、开发运维、软件开发的 Agent Skill,来自 HoangNguyen0403/agent-skills-standard。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Continuous Integration and Deployment standards for Flutter apps.

SKILL.md

下载 MD ↓
nameFlutter CI/CD
descriptionContinuous Integration and Deployment standards for Flutter apps.
metadata{"labels": ["cicd", "github-actions", "automation", "codemagic", "fastlane"], "triggers": {"files": [".github/workflows/**.yml", "fastlane/**", "android/fastlane/**", "ios/fastlane/**"], "keywords": ["ci", "cd", "pipeline", "build", "deploy", "release", "action", "workflow"]}}

CI/CD Standards

Priority: P1 (HIGH)

Automates code quality checks, testing, and deployment to prevent regressions and accelerate delivery.

Core Pipeline Steps

  1. Environment Setup: Use stable Flutter channel. Cache dependencies (pub, gradle, cocoapods).
  2. Static Analysis: Enforce flutter analyze and dart format. Fail on any warning in strict mode.
  3. Testing: Run unit, widget, and integration tests. Upload coverage reports (e.g., Codecov).
  4. Build: - Android: Build App Bundle (.aab) for Play Store. - iOS: Sign and build .ipa (requires macOS runner).
  5. Deployment (CD): Automated upload to TestFlight/Play Console using standard tools (Fastlane, Codemagic).

Best Practices

  • Timeout Limits: Always set timeout-minutes (e.g., 30m) to save costs on hung jobs.
  • Fail Fast: Run Analyze/Format before Tests/Builds.
  • Secrets: Never commit keys. Use GitHub Secrets or secure vaults for keystore.jks and .p8 certs.
  • Versioning: Automate version bumping based on git tags or semantic version scripts.

Reference

Related Topics

flutter/testing | dart/tooling

来源:HoangNguyen0403/agent-skills-standard · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本