Skip to content

Commit

Permalink
Add support for Swift Package Manager + Add Github Actions support to…
Browse files Browse the repository at this point in the history
… run tests (#81)
  • Loading branch information
funkenstrahlen authored Feb 24, 2020
1 parent 6ad1613 commit b1f9f0c
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: ImageRow Swift Package

on: [push, pull_request]

jobs:
build:

runs-on: macOS-latest

steps:
- uses: actions/checkout@v2
- name: Generate xcodeproj
run: swift package generate-xcodeproj
- name: Run tests
run: xcodebuild build test -destination 'name=iPhone 11' -scheme 'ImageRow-Package'
25 changes: 25 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// swift-tools-version:5.1
import PackageDescription

let package = Package(
name: "ImageRow",
platforms: [.iOS(.v9)],
products: [
.library(name: "ImageRow", targets: ["ImageRow"])
],
dependencies: [
.package(url: "https://github.com/xmartlabs/Eureka.git", from: "5.2.0"),
],
targets: [
.target(
name: "ImageRow",
dependencies: ["Eureka"],
path: "Sources"
),
.testTarget(
name: "ImageRowTests",
dependencies: ["ImageRow"],
path: "Tests"
)
]
)
1 change: 1 addition & 0 deletions Sources/ImageCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
// THE SOFTWARE.

import Eureka
import UIKit

public final class ImageCell: PushSelectorCell<UIImage> {
public override func setup() {
Expand Down
1 change: 1 addition & 0 deletions Sources/ImagePickerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import Eureka
import Foundation
import UIKit

public protocol ImagePickerProtocol: class {
var allowEditor: Bool { get set }
Expand Down
1 change: 1 addition & 0 deletions Sources/ImageRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import Eureka
import Foundation
import UIKit

public struct ImageRowSourceTypes: OptionSet {
public let rawValue: Int
Expand Down

0 comments on commit b1f9f0c

Please sign in to comment.