Skip to content

Commit abf91c6

Browse files
chore: skip SwiftFormat execution in CI environments
1 parent cf38c86 commit abf91c6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.github/workflows/test-workflow.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
1313
- name: Checkout Repository
1414
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1515

16-
- name: Install SwiftFormat
17-
run: brew install swiftformat
18-
1916
- name: Setup iOS Simulator
2017
run: |
2118
xcode-select -p

Samples/MobileBuyIntegration/MobileBuyIntegration.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
);
329329
runOnlyForDeploymentPostprocessing = 0;
330330
shellPath = /bin/sh;
331-
shellScript = "export PATH=\"/opt/homebrew/bin:$PATH\"\n\nif which swiftformat >/dev/null; then\n\tswiftformat \"${SRCROOT}\" \nelse \n\techo \"error: SwiftFormat not installed, download using \\\"brew install swiftformat\\\"\"\nfi\n";
331+
shellScript = "export PATH=\"/opt/homebrew/bin:$PATH\"\n\nif [ \"$CI\" = \"true\" ]; then\n echo \"Skipping SwiftFormat in CI environment\"\n exit 0\nfi\n\nif which swiftformat >/dev/null; then\n\tswiftformat \"${SRCROOT}\" \nelse \n\techo \"error: SwiftFormat not installed, download using \\\"brew install swiftformat\\\"\"\nfi\n";
332332
};
333333
/* End PBXShellScriptBuildPhase section */
334334

0 commit comments

Comments
 (0)