-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yuki Kishimoto <[email protected]>
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters