-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Swift Package Manager + Add Github Actions support to…
… run tests (#81)
- Loading branch information
1 parent
6ad1613
commit b1f9f0c
Showing
5 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters