Skip to content

Commit b8df805

Browse files
committed
Test with Swift 5
1 parent b35fb59 commit b8df805

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,25 @@ jobs:
1414
uses: maxim-lobanov/setup-xcode@v1
1515
with:
1616
xcode-version: latest-stable
17-
18-
- name: Test on iOS simulator
17+
- name: Build and Test
1918
run: |
2019
xcodebuild test -scheme PowerSync-Package -destination "platform=iOS Simulator,name=iPhone 16"
21-
- name: Test on macOS
22-
run: |
2320
xcodebuild test -scheme PowerSync-Package -destination "platform=macOS,arch=arm64,name=My Mac"
24-
- name: Test on watchOS simulator
25-
run: |
2621
xcodebuild test -scheme PowerSync-Package -destination "platform=watchOS Simulator,arch=arm64,name=Apple Watch Ultra 2 (49mm)"
22+
23+
buildSwift6:
24+
name: Build and test with Swift 6
25+
runs-on: macos-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Set up XCode
29+
uses: maxim-lobanov/setup-xcode@v1
30+
with:
31+
xcode-version: latest-stable
32+
- name: Use Swift 6
33+
run: |
34+
sed -i '' 's|^// swift-tools-version:.*$|// swift-tools-version:6.1|' Package.swift
35+
- name: Build and Test
36+
run: |
37+
swift build -Xswiftc -strict-concurrency=complete
38+
swift test -Xswiftc -strict-concurrency=complete

Sources/PowerSync/Kotlin/KotlinAdapter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ enum KotlinAdapter {
5050
name: table.name,
5151
put: translateStatement(table.put),
5252
delete: translateStatement(table.delete),
53-
clear: table.clear,
53+
clear: table.clear
5454
);
5555
}
5656

0 commit comments

Comments
 (0)