Integrate patrol for CI #361
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: Analyze code and Unit test | |
on: | |
push: | |
branches: [main] | |
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.16.9" | |
channel: "stable" | |
- run: flutter doctor | |
- 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: | | |
melos run-build-runner-all | |
melos format-all | |
git diff --exit-code |