Build #1991
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: Build | |
on: | |
push: | |
pull_request: | |
schedule: | |
# runs the CI everyday at 10AM | |
- cron: "0 10 * * *" | |
jobs: | |
flutter: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: | |
- flutter_hooks | |
channel: | |
- master | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: ${{ matrix.channel }} | |
- name: Install dependencies | |
run: flutter pub get | |
working-directory: packages/${{ matrix.package }} | |
- name: Check format | |
run: dart format --set-exit-if-changed . | |
if: matrix.channel == 'master' | |
working-directory: packages/${{ matrix.package }} | |
- name: Analyze | |
run: dart analyze . | |
working-directory: packages/${{ matrix.package }} | |
- name: Run tests | |
run: flutter test --coverage | |
working-directory: packages/${{ matrix.package }} | |
- name: Upload coverage to codecov | |
run: curl -s https://codecov.io/bash | bash | |
working-directory: packages/${{ matrix.package }} |