diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 84dadd6..7b51f37 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -21,13 +21,16 @@ jobs: - name: Get swift version run: swift --version - name: Cache Mint - uses: actions/cache@v2 + if: ${{ matrix.os == 'macos-latest' }} + id: cache-mint + uses: actions/cache@v3 with: - key: mint_deps path: ~/mint + key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }} + restore-keys: ${{ runner.os }}-mint- - uses: actions/checkout@v2 - name: Install Dependencies (Mac only) - if: ${{ matrix.os == 'macos-latest' }} + if: ${{ matrix.os == 'macos-latest' && steps.cache-npm.outputs.cache-hit != 'true' }} env: MINT_PATH: '~/mint' run: | diff --git a/Package.swift b/Package.swift index e599fad..281644e 100644 --- a/Package.swift +++ b/Package.swift @@ -5,12 +5,12 @@ let package = Package( name: "Reducer", platforms: [.macOS(.v10_13), .iOS(.v11), .tvOS(.v11), .watchOS(.v4)], products: [ - .library(name: "Reducer", targets: ["Reducer"]), + .library(name: "Reducer", targets: ["Reducer"]) // .plugin(name: "Linter", targets: ["SwiftLintPlugin"]) ], targets: [ .target(name: "Reducer"), // dependencies: ["SwiftLintPlugin"]), - .testTarget(name: "ReducerTests", dependencies: ["Reducer"]), + .testTarget(name: "ReducerTests", dependencies: ["Reducer"]) // Please keep it commented out. This should be uncommented only for when developing the library in Xcode // .binaryTarget( // name: "SwiftLintBinary", diff --git a/README.md b/README.md index 33a98c3..14d9956 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,13 @@

![Build Status](https://github.com/SwiftRex/SwiftRex/actions/workflows/swift.yml/badge.svg?branch=develop) -[![codecov](https://codecov.io/gh/SwiftRex/SwiftRex/branch/develop/graph/badge.svg)](https://codecov.io/gh/SwiftRex/SwiftRex) +[![codecov](https://codecov.io/gh/SwiftRex/Reducer/branch/master/graph/badge.svg?token=JqeB4QMx0T)](https://codecov.io/gh/SwiftRex/Reducer) [![Jazzy Documentation](https://swiftrex.github.io/SwiftRex/api/badge.svg)](https://swiftrex.github.io/SwiftRex/api/index.html) [![CocoaPods compatible](https://img.shields.io/cocoapods/v/SwiftRex.svg)](https://cocoapods.org/pods/SwiftRex) -[![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-orange.svg)](https://swiftpackageindex.com/SwiftRex/SwiftRex) -[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FSwiftRex%2FSwiftRex%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/SwiftRex/SwiftRex) -[![Platform support](https://img.shields.io/badge/platform-iOS%20%7C%20watchOS%20%7C%20tvOS%20%7C%20macOS%20%7C%20Catalyst-252532.svg)](https://github.com/SwiftRex/SwiftRex) -[![License Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/SwiftRex/SwiftRex/blob/master/LICENSE) +[![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-orange.svg)](https://swiftpackageindex.com/SwiftRex/Reducer) +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FSwiftRex%2FReducer%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/SwiftRex/Reducer) +[![Platform support](https://img.shields.io/badge/platform-iOS%20%7C%20watchOS%20%7C%20tvOS%20%7C%20macOS%20%7C%20Catalyst-252532.svg)](https://github.com/SwiftRex/Reducer) +[![License Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/SwiftRex/Reducer/blob/master/LICENSE) If you've got questions, about SwiftRex or redux and Functional Programming in general, please [Join our Slack Channel](https://join.slack.com/t/swiftrex/shared_invite/zt-oko9h1z4-Nq4YsK2FbMJ~giN01sdDeQ). diff --git a/Tests/ReducerTests/ReducerTests.swift b/Tests/ReducerTests/ReducerTests.swift index 88e1f06..dcbd724 100644 --- a/Tests/ReducerTests/ReducerTests.swift +++ b/Tests/ReducerTests/ReducerTests.swift @@ -2,7 +2,7 @@ import Foundation @testable import Reducer import XCTest -// swiftlint:disable:next type_body_length +// swiftlint:disable:next class ReducerTests: XCTestCase { func testAnyReducer() { // Given