mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Run SwiftFormat (non-lenient) separately on CI. (#167)
Make the lenient run into a post build step.
This commit is contained in:
@@ -70,21 +70,6 @@ targets:
|
||||
echo "warning: SwiftGen not installed, download from https://github.com/SwiftGen/SwiftGen"
|
||||
fi
|
||||
|
||||
- name: 🧹 SwiftFormat
|
||||
runOnlyWhenInstalling: false
|
||||
shell: /bin/sh
|
||||
script: |
|
||||
export PATH="$PATH:/opt/homebrew/bin"
|
||||
if which swiftformat >/dev/null; then
|
||||
if [ $CONFIGURATION = "Debug" ]; then
|
||||
swiftformat --lint --lenient "$PROJECT_DIR"
|
||||
else
|
||||
swiftformat --lint "$PROJECT_DIR"
|
||||
fi
|
||||
else
|
||||
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
|
||||
fi
|
||||
|
||||
postBuildScripts:
|
||||
- name: ⚠️ SwiftLint
|
||||
runOnlyWhenInstalling: false
|
||||
@@ -96,6 +81,16 @@ targets:
|
||||
else
|
||||
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
|
||||
fi
|
||||
- name: 🧹 SwiftFormat
|
||||
runOnlyWhenInstalling: false
|
||||
shell: /bin/sh
|
||||
script: |
|
||||
export PATH="$PATH:/opt/homebrew/bin"
|
||||
if which swiftformat >/dev/null; then
|
||||
swiftformat --lint --lenient "$PROJECT_DIR"
|
||||
else
|
||||
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
|
||||
fi
|
||||
|
||||
dependencies:
|
||||
- package: MatrixRustSDK
|
||||
|
||||
Reference in New Issue
Block a user