Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Nov 16, 2024
1 parent e24a2e1 commit 2ebe539
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/swift-bindings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test Swift Bindings

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

jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7

- name: Install dependencies
run: |
brew update
brew install swiftlint
gem install xcpretty
- 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 2ebe539

Please sign in to comment.