Skip to content
play

GitHub Action

Flutter Runner

1.2.0 Latest version

Flutter Runner

play

Flutter Runner

This action provides flutter support for your apps to build apks from the repo

Installation

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

              

- name: Flutter Runner

uses: jddeep/[email protected]

Learn more about this action in jddeep/Flutter-Runner

Choose a version

Flutter Runner

flutter as in Github Actions.

Usage examples

This example first cleans any stale build, gets and updates the dependencies with flutter pub get and then builds a release apk to run on all mobile devices(android) and runs the flutter tests in parallel.

action.yml
name: 'Flutter Runner'
description: 'Github action for apk building for flutter apps.'
runs:
  using: 'docker'
  image: 'Dockerfile'
  ---------------------------------------
main.yml
on: push
name: cleans, build and test app (mobile - android)
jobs:
  build:
    name: install dependencies
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master

    - name: clean stale build and cache
      uses: ./action
      with:
        args: clean

    - name: install dependencies
      uses: ./action
      with:
        args: pub get

    - name: build apk
      uses: ./action
      with:
        args: build apk --release