Skip to content

Commit

Permalink
SPM support
Browse files Browse the repository at this point in the history
  • Loading branch information
A161717 committed Aug 29, 2023
1 parent 46fb455 commit 9170a97
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
run: bundle exec fastlane ui_test

- name: Uploading Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: tests Artifacts
Expand Down
13 changes: 7 additions & 6 deletions Example/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if (installed_xcodes.empty? || !installed_xcodes.include?(requested_xcode))
end
end

simulator = "iPhone 14 Pro"
simulator = "iPhone 14 Pro (16.4)"

# Select Xcode Defined in ENV or Fastfile
xcode_select requested_xcode
Expand All @@ -66,21 +66,22 @@ default_platform(:ios)
platform :ios do
lane :ui_test do
scan(
workspace: "Swerkin.xcworkspace",
scheme: "Swerkin-UITests",
only_testing: "Swerkin-UITests",
test_without_building: true,
devices: [simulator],
configuration: "Debug",
sdk: "iphonesimulator",
workspace: "Swerkin.xcworkspace",
devices: [simulator],
output_types: "junit,html",
output_files: "swerkin_app.junit",
result_bundle: true,
buildlog_path: "./fastlane/test_output"
)
)
end

lane :unit_test do
scan(
scan(
workspace: "Swerkin.xcworkspace",
scheme: "Swerkin-UnitTests",
only_testing: "Swerkin-UnitTests",
Expand All @@ -90,7 +91,7 @@ platform :ios do
output_files: "swerkin_app.junit",
result_bundle: true,
buildlog_path: "./fastlane/test_output"
)
)
end

lane :build_for_testing do
Expand Down
29 changes: 29 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// swift-tools-version:5.3

import PackageDescription

let package = Package(
name: "Swerkin",
platforms: [.iOS(.v12)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "Swerkin",
targets: ["Swerkin-UITests"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/kif-framework/KIF.git", .upToNextMajor(from: "3.8.9")),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "Swerkin-UITests",
dependencies: ["KIF"],
path: "Sources",
sources: ["Swerkin/Classes", "Sources/SwerkinAdditions"]),
],
swiftLanguageVersions: [.v5]
)
2 changes: 1 addition & 1 deletion Swerkin.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Swerkin'
s.version = '0.0.1'
s.version = '0.0.2'
s.summary = 'Library that contains the core components for UI Testing with KIF and Gherkin'

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit 9170a97

Please # to comment.