Skip to content
terminal

GitHub Action

Flutter CLI

v1.0.0 Latest version
Use latest version
terminal

Flutter CLI

Provides the flutter binary to test and build your app

Installation

Copy and paste the following snippet into your .yml file.

- name: Flutter CLI
  uses: steebchen/flutter@v1.0.0
Learn more about this action in steebchen/flutter
Choose a version

Github Action for Flutter CLI

This action provides flutter for Github Actions.

Usage examples

This example first fetches the dependencies with flutter pub get and then builds an apk and runs the flutter tests in parallel.

.github/workflows/main.yml

on: push
name: build and test app
jobs:
  build:
    name: install dependencies
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1

    - name: install dependencies
      uses: steebchen/flutter@v1.0.0
      with:
        args: pub get

    - name: run tests
      uses: steebchen/flutter@v1.0.0
      with:
        args: test

    - name: build apk
      uses: steebchen/flutter@v1.0.0
      with:
        args: build apk --release
You can’t perform that action at this time.