-
Notifications
You must be signed in to change notification settings - Fork 1
206 lines (205 loc) · 10.5 KB
/
lint.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
# Created with package:mono_repo v6.6.1
name: Dart Lint CI
on:
push:
branches:
- main
- master
pull_request:
schedule:
- cron: "0 0 * * 0"
defaults:
run:
shell: bash
env:
PUB_ENVIRONMENT: bot.github
permissions: read-all
jobs:
job_001:
name: mono_repo self validate
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Dart SDK
uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
with:
sdk: stable
- id: checkout
name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: mono_repo self validate
run: dart pub global activate mono_repo 6.6.1
- name: mono_repo self validate
run: dart pub global run mono_repo generate --validate
job_002:
name: "analyze; PKGS: packages/aurora_push_service, packages/location_aurora, packages/mobile_scanner, packages/url_launcher_aurora, packages/vibration_aurora, packages/video_player_aurora; `dart format --output=none --set-exit-if-changed .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service-packages/location_aurora-packages/mobile_scanner-packages/url_launcher_aurora-packages/vibration_aurora-packages/video_player_aurora;commands:format"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service-packages/location_aurora-packages/mobile_scanner-packages/url_launcher_aurora-packages/vibration_aurora-packages/video_player_aurora
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Flutter SDK
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: stable
- id: checkout
name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- id: packages_aurora_push_service_pub_upgrade
name: packages/aurora_push_service; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/aurora_push_service
- name: "packages/aurora_push_service; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_aurora_push_service_pub_upgrade.conclusion == 'success'"
working-directory: packages/aurora_push_service
- id: packages_location_aurora_pub_upgrade
name: packages/location_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/location_aurora
- name: "packages/location_aurora; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_location_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/location_aurora
- id: packages_mobile_scanner_pub_upgrade
name: packages/mobile_scanner; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/mobile_scanner
- name: "packages/mobile_scanner; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_mobile_scanner_pub_upgrade.conclusion == 'success'"
working-directory: packages/mobile_scanner
- id: packages_url_launcher_aurora_pub_upgrade
name: packages/url_launcher_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/url_launcher_aurora
- name: "packages/url_launcher_aurora; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_url_launcher_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/url_launcher_aurora
- id: packages_vibration_aurora_pub_upgrade
name: packages/vibration_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/vibration_aurora
- name: "packages/vibration_aurora; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_vibration_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/vibration_aurora
- id: packages_video_player_aurora_pub_upgrade
name: packages/video_player_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/video_player_aurora
- name: "packages/video_player_aurora; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_video_player_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/video_player_aurora
job_003:
name: "analyze; PKGS: packages/aurora_push_service, packages/location_aurora, packages/mobile_scanner, packages/url_launcher_aurora, packages/vibration_aurora, packages/video_player_aurora; `flutter analyze`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service-packages/location_aurora-packages/mobile_scanner-packages/url_launcher_aurora-packages/vibration_aurora-packages/video_player_aurora;commands:analyze"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service-packages/location_aurora-packages/mobile_scanner-packages/url_launcher_aurora-packages/vibration_aurora-packages/video_player_aurora
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Flutter SDK
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: stable
- id: checkout
name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- id: packages_aurora_push_service_pub_upgrade
name: packages/aurora_push_service; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/aurora_push_service
- name: packages/aurora_push_service; flutter analyze
run: flutter analyze
if: "always() && steps.packages_aurora_push_service_pub_upgrade.conclusion == 'success'"
working-directory: packages/aurora_push_service
- id: packages_location_aurora_pub_upgrade
name: packages/location_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/location_aurora
- name: packages/location_aurora; flutter analyze
run: flutter analyze
if: "always() && steps.packages_location_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/location_aurora
- id: packages_mobile_scanner_pub_upgrade
name: packages/mobile_scanner; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/mobile_scanner
- name: packages/mobile_scanner; flutter analyze
run: flutter analyze
if: "always() && steps.packages_mobile_scanner_pub_upgrade.conclusion == 'success'"
working-directory: packages/mobile_scanner
- id: packages_url_launcher_aurora_pub_upgrade
name: packages/url_launcher_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/url_launcher_aurora
- name: packages/url_launcher_aurora; flutter analyze
run: flutter analyze
if: "always() && steps.packages_url_launcher_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/url_launcher_aurora
- id: packages_vibration_aurora_pub_upgrade
name: packages/vibration_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/vibration_aurora
- name: packages/vibration_aurora; flutter analyze
run: flutter analyze
if: "always() && steps.packages_vibration_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/vibration_aurora
- id: packages_video_player_aurora_pub_upgrade
name: packages/video_player_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/video_player_aurora
- name: packages/video_player_aurora; flutter analyze
run: flutter analyze
if: "always() && steps.packages_video_player_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/video_player_aurora
job_004:
name: Notify failure
runs-on: ubuntu-latest
if: failure()
steps:
- run: |
curl -H "Content-Type: application/json" -X POST -d \
"{'text':'Build failed! ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}'}" \
"${CHAT_WEBHOOK_URL}"
env:
CHAT_WEBHOOK_URL: "${{ secrets.CHAT_WEBHOOK_URL }}"
needs:
- job_001
- job_002
- job_003