mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Run SwiftFormat as a prebuild script to fail early on CI.
This commit is contained in:
@@ -1671,11 +1671,11 @@
|
|||||||
buildConfigurationList = B15427F8699AD5A5FC75C17E /* Build configuration list for PBXNativeTarget "ElementX" */;
|
buildConfigurationList = B15427F8699AD5A5FC75C17E /* Build configuration list for PBXNativeTarget "ElementX" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
A7130911BCB2DF3D249A1836 /* 🛠 SwiftGen */,
|
A7130911BCB2DF3D249A1836 /* 🛠 SwiftGen */,
|
||||||
|
B35AB66424BB30087EEE408C /* 🧹 SwiftFormat */,
|
||||||
9797D588420FCBBC228A63C9 /* Sources */,
|
9797D588420FCBBC228A63C9 /* Sources */,
|
||||||
215E1D91B98672C856F559D0 /* Resources */,
|
215E1D91B98672C856F559D0 /* Resources */,
|
||||||
EE878EAA342710DB973E0A87 /* Frameworks */,
|
EE878EAA342710DB973E0A87 /* Frameworks */,
|
||||||
98CA896D84BFD53B2554E891 /* ⚠️ SwiftLint */,
|
98CA896D84BFD53B2554E891 /* ⚠️ SwiftLint */,
|
||||||
B35AB66424BB30087EEE408C /* 🧹 SwiftFormat */,
|
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -27,9 +27,18 @@
|
|||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "NO"
|
||||||
codeCoverageEnabled = "YES"
|
codeCoverageEnabled = "YES"
|
||||||
onlyGenerateCoverageForSpecifiedTargets = "YES"
|
onlyGenerateCoverageForSpecifiedTargets = "YES">
|
||||||
shouldUseLaunchSchemeArgsEnv = "NO">
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "C0FAEB81CFD9776CD78CE489"
|
||||||
|
BuildableName = "ElementX.app"
|
||||||
|
BlueprintName = "ElementX"
|
||||||
|
ReferencedContainer = "container:ElementX.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
<Testables>
|
<Testables>
|
||||||
<TestableReference
|
<TestableReference
|
||||||
skipped = "NO">
|
skipped = "NO">
|
||||||
@@ -52,15 +61,6 @@
|
|||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</TestableReference>
|
</TestableReference>
|
||||||
</Testables>
|
</Testables>
|
||||||
<MacroExpansion>
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "C0FAEB81CFD9776CD78CE489"
|
|
||||||
BuildableName = "ElementX.app"
|
|
||||||
BlueprintName = "ElementX"
|
|
||||||
ReferencedContainer = "container:ElementX.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</MacroExpansion>
|
|
||||||
<CommandLineArguments>
|
<CommandLineArguments>
|
||||||
</CommandLineArguments>
|
</CommandLineArguments>
|
||||||
<EnvironmentVariables>
|
<EnvironmentVariables>
|
||||||
|
|||||||
@@ -70,18 +70,6 @@ targets:
|
|||||||
else
|
else
|
||||||
echo "warning: SwiftGen not installed, download from https://github.com/SwiftGen/SwiftGen"
|
echo "warning: SwiftGen not installed, download from https://github.com/SwiftGen/SwiftGen"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
postBuildScripts:
|
|
||||||
- name: ⚠️ SwiftLint
|
|
||||||
runOnlyWhenInstalling: false
|
|
||||||
shell: /bin/sh
|
|
||||||
script: |
|
|
||||||
export PATH="$PATH:/opt/homebrew/bin"
|
|
||||||
if which swiftlint >/dev/null; then
|
|
||||||
swiftlint
|
|
||||||
else
|
|
||||||
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: 🧹 SwiftFormat
|
- name: 🧹 SwiftFormat
|
||||||
runOnlyWhenInstalling: false
|
runOnlyWhenInstalling: false
|
||||||
@@ -97,7 +85,19 @@ targets:
|
|||||||
else
|
else
|
||||||
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
|
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
postBuildScripts:
|
||||||
|
- name: ⚠️ SwiftLint
|
||||||
|
runOnlyWhenInstalling: false
|
||||||
|
shell: /bin/sh
|
||||||
|
script: |
|
||||||
|
export PATH="$PATH:/opt/homebrew/bin"
|
||||||
|
if which swiftlint >/dev/null; then
|
||||||
|
swiftlint
|
||||||
|
else
|
||||||
|
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
|
||||||
|
fi
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- package: MatrixRustSDK
|
- package: MatrixRustSDK
|
||||||
- package: DesignKit
|
- package: DesignKit
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Disable danger for external forks due to missing secret and run SwiftFormat as a pre-build step to fail early on CI.
|
||||||
Reference in New Issue
Block a user