-
Notifications
You must be signed in to change notification settings - Fork 746
106 lines (83 loc) · 3.51 KB
/
code-analysis.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Static code analysis
on:
push:
branches:
- master
- develop
- test
- chore
pull_request:
branches:
- master
- develop
jobs:
lint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-java@v4.5.0
with:
java-version: 11
distribution: temurin
- uses: subosito/flutter-action@v2.16.0
with:
flutter-version: '3.24.0'
cache: true
- name: Install dependencies for google_ml_kit
working-directory: ./packages/google_ml_kit
run: flutter pub get
- name: Install dependencies for google_mlkit_barcode_scanning
working-directory: ./packages/google_mlkit_barcode_scanning
run: flutter pub get
- name: Install dependencies for google_mlkit_commons
working-directory: ./packages/google_mlkit_commons
run: flutter pub get
- name: Install dependencies for google_mlkit_face_detection
working-directory: ./packages/google_mlkit_face_detection
run: flutter pub get
- name: Install dependencies for google_mlkit_face_mesh_detection
working-directory: ./packages/google_mlkit_face_mesh_detection
run: flutter pub get
- name: Install dependencies for google_mlkit_image_labeling
working-directory: ./packages/google_mlkit_image_labeling
run: flutter pub get
- name: Install dependencies for google_mlkit_digital_ink_recognition
working-directory: ./packages/google_mlkit_digital_ink_recognition
run: flutter pub get
- name: Install dependencies for google_mlkit_document_scanner
working-directory: ./packages/google_mlkit_document_scanner
run: flutter pub get
- name: Install dependencies for google_mlkit_language_id
working-directory: ./packages/google_mlkit_language_id
run: flutter pub get
- name: Install dependencies for google_mlkit_object_detection
working-directory: ./packages/google_mlkit_object_detection
run: flutter pub get
- name: Install dependencies for google_mlkit_pose_detection
working-directory: ./packages/google_mlkit_pose_detection
run: flutter pub get
- name: Install dependencies for google_mlkit_text_recognition
working-directory: ./packages/google_mlkit_text_recognition
run: flutter pub get
- name: Install dependencies for google_mlkit_translation
working-directory: ./packages/google_mlkit_translation
run: flutter pub get
- name: Install dependencies for google_mlkit_entity_extraction
working-directory: ./packages/google_mlkit_entity_extraction
run: flutter pub get
- name: Install dependencies for google_mlkit_smart_reply
working-directory: ./packages/google_mlkit_smart_reply
run: flutter pub get
- name: Install dependencies for google_mlkit_selfie_segmentation
working-directory: ./packages/google_mlkit_selfie_segmentation
run: flutter pub get
- name: Install dependencies for google_mlkit_subject_segmentation
working-directory: ./packages/google_mlkit_subject_segmentation
run: flutter pub get
- name: Install dependencies for example
working-directory: ./packages/example
run: flutter pub get
# Check for any formatting issues in the code.
- run: dart format --set-exit-if-changed .
# Statically analyze the Dart code for any errors.
- run: flutter analyze .