mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
✨ :: Add fastfile containing lanes
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app
|
||||
# apple_id("[[APPLE_ID]]") # Your Apple email address
|
||||
|
||||
|
||||
# For more information about the Appfile, see:
|
||||
# https://docs.fastlane.tools/advanced/#appfile
|
||||
@@ -0,0 +1,49 @@
|
||||
# This file contains the fastlane.tools configuration
|
||||
# You can find the documentation at https://docs.fastlane.tools
|
||||
#
|
||||
# For a list of all available actions, check out
|
||||
#
|
||||
# https://docs.fastlane.tools/actions
|
||||
#
|
||||
# For a list of all available plugins, check out
|
||||
#
|
||||
# https://docs.fastlane.tools/plugins/available-plugins
|
||||
#
|
||||
|
||||
# Uncomment the line if you want fastlane to automatically update itself
|
||||
# update_fastlane
|
||||
|
||||
default_platform(:ios)
|
||||
|
||||
platform :ios do
|
||||
desc "Execute SwiftFormat and treat any formatting errors as real errors."
|
||||
lane :format do
|
||||
swiftformat(executable: "Pods/SwiftFormat/CommandLineTool/swiftformat",
|
||||
path: "../",
|
||||
lint: true)
|
||||
end
|
||||
|
||||
desc "Execute SwiftLint and treat any formatting errors as real errors."
|
||||
lane :lint do
|
||||
swiftlint(
|
||||
config_file: ".swiftlint.yml",
|
||||
strict: true,
|
||||
executable: "Pods/SwiftLint/swiftlint"
|
||||
)
|
||||
end
|
||||
|
||||
desc "Execute tests."
|
||||
lane :tests do
|
||||
run_tests(workspace: "GradientLoadingBar.xcworkspace",
|
||||
devices: ["iPhone 11 Pro"],
|
||||
scheme: "GradientLoadingBar-Example")
|
||||
end
|
||||
|
||||
desc "Execute validation of library."
|
||||
lane :pod_lint do
|
||||
Dir.chdir("..") do
|
||||
# Move outside of `Example/` directory.
|
||||
pod_lib_lint()
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
# Autogenerated by fastlane
|
||||
#
|
||||
# Ensure this file is checked in to source control!
|
||||
|
||||
gem 'fastlane-plugin-swiftformat'
|
||||
Reference in New Issue
Block a user