Skip to content

Instantly share code, notes, and snippets.

@erluxman
Last active June 12, 2020 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erluxman/ac4916fedc3b37982181b0a631561d20 to your computer and use it in GitHub Desktop.
Save erluxman/ac4916fedc3b37982181b0a631561d20 to your computer and use it in GitHub Desktop.
Snippet for flutter build on github
on: push
name: Flutter CI
jobs:
build:
name: Build and Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- run: flutter pub get
- run: flutter build aot
- run: flutter analyze
- run: flutter test --coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment