-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
90 additions
and
159 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,25 @@ | ||
name: Check build and tests | ||
name: check build and tests | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
branches: [ develop, main ] | ||
pull_request: | ||
branches: [ develop ] | ||
branches: [ develop, main ] | ||
|
||
jobs: | ||
build: | ||
name: Build with Swift ${{ matrix.swift }} on ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
swift: ["5.3", "5.4"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Setup Swift Environment for Ubuntu and macOS | ||
uses: fwal/[email protected] | ||
with: | ||
swift-version: ${{ matrix.swift }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: | | ||
swift --version | ||
swift build -v | ||
test: | ||
name: Test with Swift ${{ matrix.swift }} | ||
strategy: | ||
matrix: | ||
os: [ macos-latest ] | ||
swift: ["5.3", "5.4"] | ||
swift: ["5.7", "5.8", "5.9"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Setup Swift Environment | ||
uses: fwal/setup-swift@v1.7.0 | ||
- uses: actions/checkout@v4 | ||
- uses: fwal/setup-swift@v1 | ||
with: | ||
swift-version: ${{ matrix.swift }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Test | ||
run: | | ||
swift --version | ||
swift test | ||
codecov: | ||
name: Deploy to Codecov | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Test | ||
uses: sersoft-gmbh/[email protected] | ||
with: | ||
project: SwiftVersionCompare.xcodeproj | ||
scheme: SwiftVersionCompare-Package | ||
action: test | ||
|
||
- name: Deploy to Codecov | ||
uses: codecov/codecov-action@v1 | ||
|
||
- run: swift --version | ||
- run: swift build -v | ||
- run: swift test -v |
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,4 @@ | ||
name: Update Documentation | ||
name: update documentation | ||
|
||
on: | ||
push: | ||
|
@@ -8,15 +8,14 @@ jobs: | |
document: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Generate Documentation | ||
uses: sersoft-gmbh/swifty-docs-action@v1 | ||
- name: generate docs | ||
uses: sersoft-gmbh/swifty-docs-action@v3 | ||
with: | ||
output: docs | ||
|
||
- name: Deploy to GitHub Pages branch | ||
- name: deploy docs to github pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: documentation | ||
|
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,22 @@ | ||
name: Check build and tests | ||
|
||
on: | ||
schedule: | ||
- cron: '30 5 * * *' | ||
|
||
jobs: | ||
build: | ||
name: Build with Swift ${{ matrix.swift }} on ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
swift: ["5.7", "5.8", "5.9"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: fwal/setup-swift@v1 | ||
with: | ||
swift-version: ${{ matrix.swift }} | ||
|
||
- run: swift --version | ||
- run: swift build -v |
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
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 |
---|---|---|
@@ -1,12 +1,8 @@ | ||
# SwiftVersionCompare | ||
# swift-version-compare | ||
|
||
[![platforms](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fmflknr%2FSwiftVersionCompare%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/mflknr/SwiftVersionCompare) | ||
[![swiftcomp](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fmflknr%2FSwiftVersionCompare%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/mflknr/SwiftVersionCompare) | ||
[![build](https://github.com/mflknr/SwiftVersionCompare/workflows/build/badge.svg)](https://github.com/mflknr/SwiftVersionCompare/actions) | ||
[![codecov](https://codecov.io/gh/mflknr/SwiftVersionCompare/branch/develop/graph/badge.svg?token=6EAG2J8DMU)](https://codecov.io/gh/mflknr/SwiftVersionCompare) | ||
[![doccov](https://mflknr.github.io/SwiftVersionCompare/badge.svg?sanitize=true)](https://mflknr.github.io/SwiftVersionCompare/) | ||
[![licence](https://img.shields.io/github/license/mflknr/SwiftVersionCompare)](https://github.com/mflknr/SwiftVersionCompare/blob/main/LICENSE) | ||
[![Twitter](https://img.shields.io/badge/[email protected]?style=flat)](https://twitter.com/mflknr) | ||
[![build](https://github.com/mflknr/SwiftVersionCompare/workflows/build/badge.svg)](https://github.com/mflknr/swift-version-compare/actions) | ||
[![doccov](https://mflknr.github.io/swift-version-compare/badge.svg?sanitize=true)](https://mflknr.github.io/swift-version-compare/) | ||
[![licence](https://img.shields.io/github/license/mflknr/swift-version-compare)](https://github.com/mflknr/swift-version-compare/blob/main/LICENSE) | ||
|
||
A package introducing a `Version` object implementing the `SemanticVersionComparable` protocol for comparing versions conforming to [SemVer](https://semver.org). | ||
|
||
|
@@ -15,18 +11,12 @@ A package introducing a `Version` object implementing the `SemanticVersionCompa | |
#### Swift Package Manager: | ||
|
||
```swift | ||
package(url: https://github.com/mflknr/SwiftVersionCompare.git", from: "1.1.0")) | ||
``` | ||
|
||
#### CocoaPods | ||
|
||
```ruby | ||
pod 'SwiftVersionCompare', '~> 1.1.0' | ||
.package(url: https://github.com/mflknr/swift-version-compare.git", from: "2.0.0")) | ||
``` | ||
|
||
# Usage | ||
|
||
For detailed implementation information see [documentation](https://mflknr.github.io/SwiftVersionCompare/). | ||
For detailed implementation information see [documentation](https://mflknr.github.io/swift-version-compare/). | ||
|
||
```swift | ||
// use the version core identifier for initialization | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ests/SemanticVersionComparableTests.swift → ...ests/SemanticVersionComparableTests.swift
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
4 changes: 2 additions & 2 deletions
4
...iftVersionCompareTests/VersionTests.swift → Tests/VersionCompareTests/VersionTests.swift
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.