Update subosito/flutter-action action to v2 #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flutter CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v2.16.0 | |
with: | |
channel: 'stable' | |
- name: Doctor | |
run: flutter doctor | |
- name: Install dependencies | |
run: flutter packages get | |
- name: Format | |
run: flutter format lib test example --set-exit-if-changed | |
- name: Analyze | |
run: flutter analyze lib test example | |
- name: Run tests | |
run: flutter test --coverage --coverage-path=lcov.info | |
- uses: codecov/codecov-action@v2.1.0 |