configuring-github-actions
Installation
SKILL.md
Flutter combined with GitHub Actions Best Practices (CI/CD)
Goal
Implements robust CI/CD pipelines using GitHub Actions for Flutter projects. GitHub Actions is the most popular CI/CD platform for open-source and small-to-medium projects. By configuring YAML files under .github/workflows/, you can achieve high automation.
Instructions
1. Environment Setup & Core Setup
In all Flutter Workflows, the core package to use is the third-party maintained subosito/flutter-action.
Best Practices:
- Bind the Flutter Version: Never use
channel: stableor let it automatically fetch the latest version. Explicitly specifyflutter-versionor useflutter-version-file: pubspec.yamlto guarantee the CI environment exactly matches the local development environment. - Enable Cache:
flutter pub getis a time-consuming step. Always enablecache: true.
name: Flutter CI