Skip to content

Commit 896d297

Browse files
committed
Fail build if there are compiler warnings
Closes #1065
1 parent 985b2e4 commit 896d297

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
brew outdated swiftlint || brew upgrade swiftlint
1818
- name: "Lint"
1919
run: make lint
20+
- name: "Run tests (PACKAGE_MANAGER_COMMAND: test)"
21+
env:
22+
PACKAGE_MANAGER_COMMAND: test -Xswiftc -warnings-as-errors
23+
run: ./run-tests.sh
2024
- name: "Run tests (BUILD_SCHEME: SQLite iOS)"
2125
env:
2226
BUILD_SCHEME: SQLite iOS
@@ -57,7 +61,3 @@ jobs:
5761
env:
5862
CARTHAGE_PLATFORM: tvOS
5963
run: ./run-tests.sh
60-
- name: "Run tests (PACKAGE_MANAGER_COMMAND: test)"
61-
env:
62-
PACKAGE_MANAGER_COMMAND: test
63-
run: ./run-tests.sh

Sources/SQLite/Core/Connection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ public final class Connection {
434434
}
435435
}
436436

437-
@available(OSX, deprecated: 10.2)
437+
@available(OSX, deprecated: 10.12)
438438
@available(iOS, deprecated: 10.0)
439439
@available(watchOS, deprecated: 3.0)
440440
@available(tvOS, deprecated: 10.0)

0 commit comments

Comments
 (0)