Skip to content

Build

Build #1836

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:
flutter_info:
- {version: '3.10.0', channel: stable}
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
flutter-version: ${{ matrix.flutter_info.version }}
channel: ${{ matrix.flutter_info.channel }}
- name: Install dependencies
run: flutter --version && flutter pub get
- name: Run tests
run: flutter test --coverage --coverage-path coverage/lcov.info
# - uses: codecov/codecov-action@v2
# with:
# # token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage/lcov.info
# flags: main-tests
# fail_ci_if_error: true
# verbose: true
- name: Check format
run: dart format --set-exit-if-changed .
- name: Analyze
run: flutter analyze