A ready-to-use Pipeline for your Flutter projects.
Run the following command in your project:
fluentci run flutter_pipeline
Or, if you want to use it as a template:
fluentci init -t flutter
This will create a .fluentci
folder in your project.
Now you can run the pipeline with:
fluentci run .
Use as a Dagger module:
dagger mod install github.com/fluent-ci-templates/flutter-pipeline@mod
Variable | Description | Default |
---|---|---|
FLUTTER_VERSION |
Flutter version to use | 3.13.1 |
BUILD_OUTPUT_TYPE |
Build output type (aar , apk , appbundle , bundle , linux , web ) |
apk |
Job | Description |
---|---|
codeQuality | Run code quality checks |
test | Run tests |
build | Build release |
codeQuality(
src: string | Directory = ".",
flutterVersion: string = "3.13.1"
): Promise<File | string>
test(
src?: string | Directory = ".",
flutterVersion?: string = "3.13.1"
): Promise<Directory | string>
build(
src?: string | Directory = ".",
flutterVersion?: string = "3.13.1",
buildOutputType?: string = "apk"
): Promise<Directory | string>
You can also use this pipeline programmatically:
import { codeQuality, test, build } from "jsr:@fluentci/flutter";
await codeQuality();
await test();
await build();