Skip to content

Added

Added #645

Workflow file for this run

name: Analyze code and Unit test
on:
push:
branches: [main, el/fix-ci-generate-files]
pull_request:
branches: [main]
jobs:
flutter_test:
name: Analyze code and Unit test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.3"
channel: "stable"
- run: flutter doctor
- run: dart pub global activate flutterfire_cli
- name: "Melos Install"
run: dart pub global activate melos
- name: "Melos bs"
run: melos bootstrap
- name: "Check fmt"
run: melos format-check
- name: "Analyze Code"
run: melos analyze-check
- name: "Run unit tests"
run: melos unit-test
- name: "Run the build_runner and return an error if files are changed"
run: |
./scripts/delete_g_files.sh
melos run run-build-runner-init
dart format . --line-length 120
git diff --exit-code