-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shendy/swift6 upgrade dependencies (#7)
* upgrade AppState to 2.0.0 * fix: Call to main actor-isolated initializer * Update macOS.yml * Fix test --------- Co-authored-by: Zach <[email protected]>
- Loading branch information
1 parent
ad8917c
commit 66ca52c
Showing
5 changed files
with
26 additions
and
17 deletions.
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 |
---|---|---|
@@ -1,23 +1,20 @@ | ||
# This workflow will build a Swift project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | ||
|
||
name: macOS | ||
|
||
on: | ||
push: | ||
branches: ["**"] | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-13 | ||
|
||
runs-on: macos-latest | ||
steps: | ||
- uses: swift-actions/setup-swift@v1 | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
- uses: actions/checkout@v3 | ||
- name: Build for release | ||
run: swift build -v -c release | ||
- name: Test | ||
run: swift test -v | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: 16.0 | ||
- uses: actions/checkout@v3 | ||
- name: Build | ||
run: swift build -v | ||
- name: Run tests | ||
run: swift test -v |
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
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
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
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 |
---|---|---|
@@ -1,10 +1,20 @@ | ||
import XCTest | ||
@testable import FeedbackKit | ||
|
||
@MainActor | ||
final class FeedbackKitTests: XCTestCase { | ||
func testExample() throws { | ||
let store = FeedbackStore() | ||
|
||
|
||
let feedback = Feedback(type: .comment, title: "Cool", description: "Feedback", state: .open) | ||
|
||
store.set(feedback: feedback) | ||
|
||
let storedFeedback = try XCTUnwrap(store.get(id: feedback.id)) | ||
|
||
XCTAssertEqual(storedFeedback.type, storedFeedback.type) | ||
XCTAssertEqual(storedFeedback.title, storedFeedback.title) | ||
XCTAssertEqual(storedFeedback.description, storedFeedback.description) | ||
XCTAssertEqual(storedFeedback.state, storedFeedback.state) | ||
} | ||
} |