Skip to main content
Deno 2 is finally here 🎉️
Learn more

Flutter Pipeline

fluentci pipeline deno module deno compatibility coverage

A ready-to-use Pipeline for your Flutter projects.

🚀 Usage

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 .

Dagger Module

Use as a Dagger module:

dagger mod install github.com/fluent-ci-templates/flutter-pipeline@mod

Environment variables

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

Jobs

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>

Programmatic usage

You can also use this pipeline programmatically:

import { codeQuality, test, build } from "https://pkg.fluentci.io/flutter_pipeline@v0.7.2/mod.ts";

await codeQuality();
await test();
await build();