Skip to content

Commit f7fad8a

Browse files
wip: implement dynamic CircleCI config with path-filtering
- Updated root .circleci/config.yml to include path-filtering orb - Added continuation steps for dynamically processing package-specific configs - Marked package-specific config.yml files as version 2.1 for compatibility - Adjusted workflows to trigger on changes to specific package paths - Testing and validation of dynamic CI configuration in progress
1 parent a698d3a commit f7fad8a

File tree

6 files changed

+34
-13
lines changed

6 files changed

+34
-13
lines changed

.circleci/config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2.1
2+
3+
# this allows you to use CircleCI's dynamic configuration feature
4+
setup: true
5+
6+
orbs:
7+
path-filtering: circleci/[email protected]
8+
9+
workflows:
10+
setup:
11+
jobs:
12+
- path-filtering/filter:
13+
name: filter_instabug_flutter
14+
config-path: packages/instabug_flutter/.circleci/config.yml
15+
base-revision: master

melos.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ packages:
66
scripts:
77
analyze:
88
exec: dart analyze .
9+
format:
10+
exec: dart format . --set-exit-if-changed
911
pigeon:
1012
exec: sh scripts/pigeon.sh
1113
packageFilters:

packages/Instabug_Dart_http_Adapter/.circleci/config.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 2
1+
version: 2.1
22
jobs:
33
test:
44
docker:
@@ -17,10 +17,9 @@ jobs:
1717
steps:
1818
- checkout
1919
- run: chmod +x release.sh
20-
- run: ./release.sh
20+
- run: ./release.sh
2121

2222
workflows:
23-
version: 2
2423
build-test:
2524
jobs:
2625
- test
@@ -36,4 +35,4 @@ workflows:
3635
- hold
3736
filters:
3837
branches:
39-
only: master
38+
only: master

packages/instabug_dio_interceptor/.circleci/config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 2
1+
version: 2.1
22
jobs:
33
test:
44
docker:
@@ -11,7 +11,7 @@ jobs:
1111
- run: flutter test
1212
- run: flutter analyze .
1313
- run: flutter pub publish --dry-run
14-
14+
1515
release:
1616
docker:
1717
- image: cirrusci/flutter
@@ -20,7 +20,6 @@ jobs:
2020
- run: ./release.sh
2121

2222
workflows:
23-
version: 2
2423
build-test:
2524
jobs:
2625
- test

packages/instabug_flutter/.circleci/config.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ commands:
1212
version: 3.10.5
1313
- run:
1414
name: Generate Pigeons
15-
command: sh ./scripts/pigeon.sh
15+
command: sh ./packages/instabug_flutter/scripts/pigeon.sh
1616
setup_ios:
1717
steps:
1818
# Flutter doesn't support Apple Silicon yet, so we need to install Rosetta use Flutter on M1 machines.
@@ -120,6 +120,7 @@ jobs:
120120
command: yarn danger ci
121121

122122
test_flutter:
123+
working_directory: packages/instabug_flutter
123124
parameters:
124125
version:
125126
type: string
@@ -139,6 +140,7 @@ jobs:
139140
- lcov.info
140141

141142
test_android:
143+
working_directory: packages/instabug_flutter
142144
executor:
143145
name: android/android-machine
144146
resource-class: xlarge
@@ -157,6 +159,7 @@ jobs:
157159
test-command: ./gradlew test
158160

159161
e2e_android_captain:
162+
working_directory: packages/instabug_flutter
160163
executor:
161164
name: android/android-machine
162165
resource-class: xlarge
@@ -173,6 +176,7 @@ jobs:
173176
test-command: cd e2e || true && dotnet test
174177

175178
test_ios:
179+
working_directory: packages/instabug_flutter
176180
macos:
177181
xcode: 13.4.1
178182
resource_class: macos.m1.medium.gen1
@@ -210,6 +214,7 @@ jobs:
210214
command: dotnet test
211215

212216
format_flutter:
217+
working_directory: packages/instabug_flutter
213218
docker:
214219
- image: cirrusci/flutter
215220
steps:
@@ -221,6 +226,7 @@ jobs:
221226
command: dart format . --set-exit-if-changed
222227

223228
lint_flutter:
229+
working_directory: packages/instabug_flutter
224230
docker:
225231
- image: cirrusci/flutter
226232
steps:
@@ -232,6 +238,7 @@ jobs:
232238
command: flutter analyze
233239

234240
verify_pub:
241+
working_directory: packages/instabug_flutter
235242
docker:
236243
- image: cirrusci/flutter
237244
steps:
@@ -256,11 +263,11 @@ jobs:
256263
app-dir: project
257264
- run:
258265
name: Install pub packages
259-
working_directory: ~/project
266+
working_directory: ~/project/packages/instabug_flutter
260267
command: dart pub get
261268
- run:
262269
name: Generate Pigeons
263-
working_directory: project
270+
working_directory: project/packages/instabug_flutter
264271
command: sh ./scripts/pigeon.sh
265272
- run:
266273
name: Clone Escape
@@ -273,11 +280,10 @@ jobs:
273280
cp -f .build/release/Escape /usr/local/bin/escape
274281
- run:
275282
name: Publish Package
276-
working_directory: project
283+
working_directory: project/packages/instabug_flutter
277284
command: Escape flutter publish
278285

279286
workflows:
280-
version: 2
281287
build-test-and-approval-deploy:
282288
jobs:
283289
- danger:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: instabug_flutter_mono
22

33
environment:
4-
sdk: '>=3.0.0 <4.0.0'
4+
sdk: '>=2.12.0 <4.0.0'
55

66
dev_dependencies:
77
melos: ^4.1.0

0 commit comments

Comments
 (0)