-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SwiftPM and Github actions support
- Loading branch information
1 parent
e0e74c5
commit 8234da8
Showing
13 changed files
with
111 additions
and
18 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,43 @@ | ||
name: "OMGHTTPURLRQ CI" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
Pods: | ||
name: Cocoapods Lint (Latest Stable Xcode) | ||
runs-on: macOS-11 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Xcode version | ||
uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest-stable | ||
|
||
- name: Run pod lib lint | ||
run: pod lib lint --fail-fast | ||
|
||
SwiftPM: | ||
name: SwiftPM (Latest Stable Xcode) | ||
runs-on: macOS-11 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Xcode version | ||
uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest-stable | ||
|
||
- name: Build | ||
run: swift build | ||
|
||
- name: Run tests | ||
run: swift test |
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
/Carthage | ||
/Cartfile.resolved | ||
xcuserdata | ||
.DS_Store | ||
.DS_Store | ||
|
||
# Swift Package Manager | ||
.build/ | ||
.swiftpm/ | ||
Package.resolved |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// swift-tools-version:5.3 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "OMGHTTPURLRQ", | ||
platforms: [ | ||
.iOS(.v9), | ||
.tvOS(.v9), | ||
.watchOS(.v2), | ||
.macOS(.v10_10) | ||
], | ||
products: [ | ||
.library( | ||
name: "OMGHTTPURLRQ", | ||
targets: ["OMGHTTPURLRQ"]), | ||
.library( | ||
name: "OMGHTTPURLRQUserAgent", | ||
targets: ["OMGHTTPURLRQUserAgent"]), | ||
.library( | ||
name: "OMGHTTPURLRQFormURLEncode", | ||
targets: ["OMGHTTPURLRQFormURLEncode"]), | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "OMGHTTPURLRQ", | ||
dependencies: [ | ||
"OMGHTTPURLRQUserAgent", | ||
"OMGHTTPURLRQFormURLEncode" | ||
], | ||
path: "Sources/RQ", | ||
publicHeadersPath: "."), | ||
.target( | ||
name: "OMGHTTPURLRQUserAgent", | ||
path: "Sources/UserAgent", | ||
publicHeadersPath: "."), | ||
.target( | ||
name: "OMGHTTPURLRQFormURLEncode", | ||
path: "Sources/FormURLEncode", | ||
publicHeadersPath: "."), | ||
.testTarget( | ||
name: "OMGHTTPURLRQTests", | ||
dependencies: ["OMGHTTPURLRQ"], | ||
path: "Tests", | ||
exclude: ["Tests-Info.plist"]), | ||
] | ||
) |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.