Skip to content

Commit

Permalink
Add tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tunous committed Apr 24, 2022
1 parent ad54a21 commit 7dd9053
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,20 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- run: swift test

lint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: norio-nomura/[email protected]
1 change: 0 additions & 1 deletion Package.swift
Expand Up @@ -11,7 +11,6 @@ let package = Package(
targets: ["DebouncedOnChange"]),
],
dependencies: [
.package(url: "https://github.com/Tunous/DebouncedOnChange.git", .upToNextMajor(from: "1.0.0"))
],
targets: [
.target(
Expand Down
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -5,6 +5,9 @@ A SwiftUI onChange view modifier with additional debounce time.
## Usage

```swift
import SwiftUI
import DebouncedOnChange

struct ExampleView: View {
@State private var text = ""

Expand Down

0 comments on commit 7dd9053

Please sign in to comment.