Skip to content

Build

Build #2031

Workflow file for this run

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 }}