Skip to content

Commit b63afc3

Browse files
authored
[MOB-9980] Add sync_generated_files CI Job (#749)
* Add CI Job `validate_changes` * Rename to `validate_sync` * Ignore EXCLUDED_ARCHS Changes These type of change needs to be ignored because it's machine-dependant. Running the same command on macOS with different architectures, will make changes in `project.pbxproj` in the following line: "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64"; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; * Rename to `sync_generated_files`
1 parent 9801356 commit b63afc3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.circleci/config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,21 @@ jobs:
103103
name: Validate iOS Script
104104
command: bash -n ios/upload_sourcemap.sh
105105

106+
# Make sure that files like yarn.lock and project.pbxproj
107+
# are in sync with the latest changes in package.json and
108+
# ios/upload_sourcemap.sh files respectively.
109+
sync_generated_files:
110+
macos:
111+
xcode: 13.4.1
112+
working_directory: ~/project
113+
steps:
114+
- checkout
115+
- run: yarn
116+
- run: cd InstabugSample && yarn
117+
- run: cd InstabugSample/ios && pod install
118+
- run: git --no-pager diff
119+
- run: git diff-index HEAD --exit-code -p -I EXCLUDED_ARCHS # Ignore Arch Changes
120+
106121
test_ios:
107122
macos:
108123
xcode: "13.4.1"
@@ -214,6 +229,7 @@ workflows:
214229
- test_sample
215230
- test_android
216231
- validate_shell_files
232+
- sync_generated_files
217233
- test_ios
218234
- e2e_ios
219235
- e2e_android
@@ -223,6 +239,7 @@ workflows:
223239
- test_sample
224240
- test_android
225241
- validate_shell_files
242+
- sync_generated_files
226243
- test_ios
227244
- e2e_ios
228245
- e2e_android

0 commit comments

Comments
 (0)