Skip to content

CICD-480 · Flutter build ​

Encyclopedia · Mobile, desktop and binary distribution · All snippets

Previous · CICD-479 · Next · CICD-481

1. Where it fits ​

  • Placement Flutter CI run step.
  • Prerequisites approved toolchains and isolated build/signing runner when credentials are required.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
flutter pub get --enforce-lockfile
flutter analyze
flutter test
flutter build apk --debug

3. How it works ​

Flutter installs from the required lockfile, then analyzes code and runs tests. The final command assembles a debug APK only after those gates pass.

4. Verify the result ​

Pin Flutter to a project-supported version and verify tests precede the APK build.

Validation syntax-validated (Bash parse). Status definitions.