Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 2a066a8

Browse files
committed
Add lane to test SPM setup
1 parent 79384d2 commit 2a066a8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

fastlane/Fastfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,27 @@
33
default_platform(:ios)
44

55
SWIFTLINT_PATH = './Pods/SwiftLint/swiftlint'
6+
SWIFTLINT_PLUGIN_VALIDATION_BYPASS_XCARGS = '-skipPackagePluginValidation -skipMacroValidation'
67

78
platform :ios do
9+
# "swift build" fails because of the UIKit dependency, so we need to validate the package via xcodebuild
10+
lane :package_build do
11+
scheme = 'WordPressKit'
12+
13+
xcodebuild(
14+
scheme:,
15+
xcargs: "-resolvePackageDependencies #{SWIFTLINT_PLUGIN_VALIDATION_BYPASS_XCARGS}"
16+
)
17+
18+
run_tests(
19+
package_path: '.',
20+
scheme:,
21+
device: 'iPhone 15',
22+
prelaunch_simulator: true,
23+
xcargs: SWIFTLINT_PLUGIN_VALIDATION_BYPASS_XCARGS
24+
)
25+
end
26+
827
lane :lint do
928
swiftlint(
1029
executable: SWIFTLINT_PATH,

0 commit comments

Comments
 (0)