Skip to content

Commit

Permalink
ci: test Swift Package
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Nov 27, 2024
1 parent 5073674 commit 406ddf2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/bindings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Bindings CI

on:
workflow_dispatch:
push:
paths:
- "bindings/nostr-sdk-ffi/**"
pull_request:
paths:
- "bindings/nostr-sdk-ffi/**"

jobs:
swift:
name: Swift Package
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install just
run: cargo install just

- name: Build Swift Package
working-directory: bindings/nostr-sdk-ffi
run: just swift

- name: Test
working-directory: bindings/nostr-sdk-ffi/swift
run: swift test
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ import XCTest
@testable import NostrSDK

final class NostrSDKTests: XCTestCase {
func testExample() throws {}
func testExample() throws {
var client: Client = ClientBuilder.init().build()
}
}

0 comments on commit 406ddf2

Please sign in to comment.