Skip to content

Build

Build #773

Workflow file for this run

name: Build
on:
push:
pull_request:
schedule:
# runs at 9AM
- cron: "0 9 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.0.x'
channel: 'stable'
- run: flutter --version
- name: Install melos
run: dart pub global activate melos
- name: Install dependencies
run: melos bootstrap
- name: Generate files
run: melos exec -c 1 --depends-on="build_runner" --no-flutter -- "dart run build_runner build --delete-conflicting-outputs"
- name: Verify formatting
run: melos exec -c 1 -- dart format --output=none --set-exit-if-changed .
- name: Analyze
run: melos exec -c 1 -- dart analyze .
- name: Install coverage
run: dart pub global activate coverage
- name: Run dart test
run: melos exec -c 1 --no-flutter -- dart pub global run coverage:test_with_coverage
- name: Run flutter test
run: melos exec -c 1 --flutter -- "flutter test --coverage"
- name: Upload coverage
uses: codecov/codecov-action@v3