Skip to main content

Build and test Flutter applications

This guide will help you build and test Flutter applications with FluentCI.

Before you begin

The instructions on this page assume that you are familiar with Flutter. In addition:

  • Be familiar with creating Flutter-based applications.
  • Have your Flutter project ready.

Using the Flutter Plugin

You can use FluentCI to build and test Flutter applications using the flutter plugin, no need to install Flutter on your machine, FluentCI will handle everything for you.

The following commands can be used to build and test Flutter applications:

fluentci run --wasm flutter code_quality
fluentci run --wasm flutter test
fluentci run --wasm flutter build

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to build and test Flutter applications:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: code_quality
run: fluentci run --wasm flutter code_quality
- name: test
run: fluentci run --wasm flutter test
- name: build
run: fluentci run --wasm flutter build