Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jegge committed Feb 27, 2024
2 parents c71ec8f + 891e2db commit 2d269f9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ nesting:

included:
- Sources

excluded:
- Tests

4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![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)
![GitHub](https://img.shields.io/github/license/Jegge/OldMoofKit)
Expand Down Expand Up @@ -154,7 +156,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
Expand Down

0 comments on commit 2d269f9

Please sign in to comment.