Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.
/ setup-flutter Public archive
generated from actions/typescript-action

Set up your GitHub Actions workflow with Flutter

License

Notifications You must be signed in to change notification settings

takuchalle/setup-flutter

Repository files navigation

Actions Status

setup-flutter

This action sets up a flutter environment for use in actions by:

  • optionally downloading and caching a version of flutter by version and adding to PATH

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@v1
- uses: takuyaohashi/setup-flutter@v1
  with:
    flutter-version: 'latest'
    channel: 'stable'
- run: flutter test

Matrix Testing:

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        flutter: [ 'latest', 'v1.9.1+hotfix.6' ]
    steps:
    - uses: actions/checkout@v1
    - uses: takuyaohashi/setup-flutter@v1
      with: 
        flutter-version: ${{ matrix.flutter }}
        channel: 'stable'
    - name: test
      run: flutter test

License

The scripts and documentation in this project are released under the MIT License