From f81d90bdea905aeeffd5d792c87928e1dd66fcb5 Mon Sep 17 00:00:00 2001 From: Sebastian Boettcher Date: Sat, 23 Sep 2023 06:05:29 +0200 Subject: [PATCH 1/6] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 45525a7..1867370 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![](https://www.codefactor.io/repository/github/Jegge/OldMoofKit/badge)](https://www.codefactor.io/repository/github/Jegge/OldMoofKit) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FJegge%2FOldMoofKit%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/Jegge/OldMoofKit) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FJegge%2FOldMoofKit%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/Jegge/OldMoofKit) ![GitHub](https://img.shields.io/github/license/Jegge/OldMoofKit) From 8062478f0904db3abd595dd7229566daa91b7d42 Mon Sep 17 00:00:00 2001 From: Sebastian Boettcher Date: Sat, 23 Sep 2023 06:09:07 +0200 Subject: [PATCH 2/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1867370..0feffd8 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ subscription.cancel() ## Errors -The bike has a dedicated `errorPublisher`, that you can subscripe to to get error messages. +The bike has a dedicated `errorPublisher`, that you can subscribe to to get error messages. ```swift let subscription: AnyCancellable = bike.errorPublisher.receive(on: RunLoop.main).sink { error in From 11cf474ff274cb24786fdfbb015183ee3eec2ce0 Mon Sep 17 00:00:00 2001 From: Sebastian Boettcher Date: Sat, 23 Sep 2023 06:12:38 +0200 Subject: [PATCH 3/6] Update .swiftlint.yml --- .swiftlint.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.swiftlint.yml b/.swiftlint.yml index be98b21..bae6904 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -18,3 +18,7 @@ nesting: included: - Sources + +excluded: + - Tests + From 44580528d01440e03f2b229a80d2d0d2e1fdcfbb Mon Sep 17 00:00:00 2001 From: Sebastian Boettcher Date: Sat, 23 Sep 2023 06:17:05 +0200 Subject: [PATCH 4/6] Update Package.swift --- Package.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index 356c5c7..2e6b9d5 100644 --- a/Package.swift +++ b/Package.swift @@ -6,13 +6,13 @@ import PackageDescription let package = Package( name: "OldMoofKit", platforms: [ - .macOS(.v11), .iOS(.v14), + .macOS(.v11), .iOS(.v14) ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: "OldMoofKit", - targets: ["OldMoofKit"]), + targets: ["OldMoofKit"]) ], dependencies: [ // Dependencies declare other packages that this package depends on. From 5962c736eed836acc1a21d06d98629f609ab079b Mon Sep 17 00:00:00 2001 From: Sebastian Boettcher Date: Sat, 23 Sep 2023 06:27:24 +0200 Subject: [PATCH 5/6] Added git workflow for tests --- .github/workflows/swift.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..99204ad --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,15 @@ +name: Tests + +on: [push, pull_request] + +jobs: + build: + + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v From 891e2dbc2e439e09f9a5d810ead9810f95579dd6 Mon Sep 17 00:00:00 2001 From: Sebastian Boettcher Date: Sat, 23 Sep 2023 06:33:10 +0200 Subject: [PATCH 6/6] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0feffd8..ef845df 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Tested on GitHub Actions](https://github.com/Jegge/OldMoofKit/actions/workflows/swift.yml/badge.svg)](https://github.com/Jegge/OldMoofKit/actions/workflows/swift.yml) [![](https://www.codefactor.io/repository/github/Jegge/OldMoofKit/badge)](https://www.codefactor.io/repository/github/Jegge/OldMoofKit) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FJegge%2FOldMoofKit%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/Jegge/OldMoofKit) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FJegge%2FOldMoofKit%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/Jegge/OldMoofKit)