-
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (33 loc) · 940 Bytes
/
analyze_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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.19.5"
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: |
melos run-build-runner-all
melos format-all
git diff --exit-code