Skip to content

Commit 8750f1b

Browse files
authored
Merge pull request #1339 from stephencelis/run-all-tests
Run all tests + update
2 parents 591a225 + fd07acd commit 8750f1b

20 files changed

Lines changed: 74 additions & 122 deletions

.github/workflows/build.yml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
name: Build and test
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
concurrency:
10+
group: ci-${{ github.ref }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
312
env:
413
IOS_SIMULATOR: "iPhone 16"
514
IOS_VERSION: "18.4"
615
jobs:
716
build:
817
runs-on: macos-15
918
steps:
10-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
1120
- name: "Lint"
1221
run: make lint
1322
- name: "Run tests (PACKAGE_MANAGER_COMMAND: test)"
@@ -42,30 +51,10 @@ jobs:
4251
env:
4352
VALIDATOR_SUBSPEC: SQLCipher
4453
run: ./run-tests.sh
45-
- name: "Run tests (CARTHAGE_PLATFORM: iOS)"
46-
env:
47-
CARTHAGE_PLATFORM: iOS
48-
run: ./run-tests.sh
49-
- name: "Run tests (CARTHAGE_PLATFORM: Mac)"
50-
env:
51-
CARTHAGE_PLATFORM: Mac
52-
run: ./run-tests.sh
53-
- name: "Run tests (CARTHAGE_PLATFORM: watchOS)"
54-
env:
55-
CARTHAGE_PLATFORM: watchOS
56-
run: ./run-tests.sh
57-
- name: "Run tests (CARTHAGE_PLATFORM: tvOS)"
58-
env:
59-
CARTHAGE_PLATFORM: tvOS
60-
run: ./run-tests.sh
61-
- name: "Run tests (CARTHAGE_PLATFORM: visionOS)"
62-
env:
63-
CARTHAGE_PLATFORM: visionOS
64-
run: ./run-tests.sh
6554
build-linux:
6655
runs-on: ubuntu-latest
6756
steps:
68-
- uses: actions/checkout@v2
57+
- uses: actions/checkout@v4
6958
- name: Install
7059
run: |
7160
sudo apt-get update -qq
@@ -79,6 +68,9 @@ jobs:
7968
build-android:
8069
runs-on: ubuntu-latest
8170
steps:
82-
- uses: actions/checkout@v2
83-
- name: Run tests
71+
- uses: actions/checkout@v4
72+
- name: Run tests on Android
8473
uses: skiptools/swift-android-action@v2
74+
with:
75+
# Ubuntu runners low on space causes the emulator to fail to install
76+
free-disk-space: true

Gemfile.lock

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ GIT
2525
GEM
2626
remote: https://rubygems.org/
2727
specs:
28-
CFPropertyList (3.0.7)
29-
base64
30-
nkf
31-
rexml
32-
activesupport (7.2.2.1)
28+
CFPropertyList (3.0.8)
29+
activesupport (7.2.3)
3330
base64
3431
benchmark (>= 0.3)
3532
bigdecimal
@@ -41,15 +38,15 @@ GEM
4138
minitest (>= 5.1)
4239
securerandom (>= 0.3)
4340
tzinfo (~> 2.0, >= 2.0.5)
44-
addressable (2.8.7)
45-
public_suffix (>= 2.0.2, < 7.0)
41+
addressable (2.8.8)
42+
public_suffix (>= 2.0.2, < 8.0)
4643
algoliasearch (1.27.5)
4744
httpclient (~> 2.8, >= 2.8.3)
4845
json (>= 1.5.1)
4946
atomos (0.1.3)
50-
base64 (0.2.0)
51-
benchmark (0.4.0)
52-
bigdecimal (3.1.9)
47+
base64 (0.3.0)
48+
benchmark (0.5.0)
49+
bigdecimal (4.0.1)
5350
claide (1.1.0)
5451
cocoapods-core (1.16.2)
5552
activesupport (>= 5.0, < 8)
@@ -71,32 +68,34 @@ GEM
7168
netrc (~> 0.11)
7269
cocoapods-try (1.2.0)
7370
colored2 (3.1.2)
74-
concurrent-ruby (1.3.5)
75-
connection_pool (2.5.3)
71+
concurrent-ruby (1.3.6)
72+
connection_pool (3.0.2)
7673
drb (2.2.3)
7774
escape (0.0.4)
78-
ethon (0.16.0)
75+
ethon (0.18.0)
7976
ffi (>= 1.15.0)
80-
ffi (1.17.2)
81-
ffi (1.17.2-arm64-darwin)
77+
logger
78+
ffi (1.17.3)
79+
ffi (1.17.3-arm64-darwin)
8280
fourflusher (2.3.1)
8381
fuzzy_match (2.0.4)
8482
gh_inspector (1.1.3)
8583
httpclient (2.9.0)
8684
mutex_m
87-
i18n (1.14.7)
85+
i18n (1.14.8)
8886
concurrent-ruby (~> 1.0)
89-
json (2.12.0)
87+
json (2.18.0)
9088
logger (1.7.0)
91-
minitest (5.25.5)
89+
minitest (6.0.1)
90+
prism (~> 1.5)
9291
molinillo (0.8.0)
9392
mutex_m (0.3.0)
9493
nanaimo (0.4.0)
9594
nap (1.1.0)
9695
netrc (0.11.0)
97-
nkf (0.2.0)
96+
prism (1.7.0)
9897
public_suffix (4.0.7)
99-
rexml (3.4.1)
98+
rexml (3.4.4)
10099
ruby-macho (4.1.0)
101100
securerandom (0.4.1)
102101
typhoeus (1.4.1)

SQLite.swift.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Pod::Spec.new do |s|
3232

3333
ss.test_spec 'tests' do |test_spec|
3434
test_spec.resources = 'Tests/SQLiteTests/Resources/*'
35-
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
35+
test_spec.source_files = 'Tests/SQLiteTests/**/*.swift'
3636
end
3737
end
3838

@@ -49,7 +49,7 @@ Pod::Spec.new do |s|
4949

5050
ss.test_spec 'tests' do |test_spec|
5151
test_spec.resources = 'Tests/SQLiteTests/Resources/*'
52-
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
52+
test_spec.source_files = 'Tests/SQLiteTests/**/*.swift'
5353
end
5454
end
5555

@@ -72,7 +72,7 @@ Pod::Spec.new do |s|
7272

7373
ss.test_spec 'tests' do |test_spec|
7474
test_spec.resources = 'Tests/SQLiteTests/Resources/*'
75-
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
75+
test_spec.source_files = 'Tests/SQLiteTests/**/*.swift'
7676
end
7777
end
7878
end

Sources/SQLite/Core/Backup.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
import Foundation
2626
import Dispatch
27-
#if SQLITE_SWIFT_STANDALONE
27+
#if canImport(sqlite3)
2828
import sqlite3
29-
#elseif SQLITE_SWIFT_SQLCIPHER
29+
#elseif canImport(SQLCipher)
3030
import SQLCipher
3131
#elseif canImport(SwiftToolchainCSQLite)
3232
import SwiftToolchainCSQLite

Sources/SQLite/Core/Connection+Aggregation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
2-
#if SQLITE_SWIFT_STANDALONE
2+
#if canImport(sqlite3)
33
import sqlite3
4-
#elseif SQLITE_SWIFT_SQLCIPHER
4+
#elseif canImport(SQLCipher)
55
import SQLCipher
66
#elseif canImport(SwiftToolchainCSQLite)
77
import SwiftToolchainCSQLite

Sources/SQLite/Core/Connection+Attach.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
import Foundation
2-
#if SQLITE_SWIFT_STANDALONE
3-
import sqlite3
4-
#elseif SQLITE_SWIFT_SQLCIPHER
5-
import SQLCipher
6-
#elseif canImport(SwiftToolchainCSQLite)
7-
import SwiftToolchainCSQLite
8-
#else
9-
import SQLite3
10-
#endif
112

123
extension Connection {
134
#if SQLITE_SWIFT_SQLCIPHER

Sources/SQLite/Core/Connection.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
import Foundation
2626
import Dispatch
27-
#if SQLITE_SWIFT_STANDALONE
27+
#if canImport(sqlite3)
2828
import sqlite3
29-
#elseif SQLITE_SWIFT_SQLCIPHER
29+
#elseif canImport(SQLCipher)
3030
import SQLCipher
3131
#elseif canImport(SwiftToolchainCSQLite)
3232
import SwiftToolchainCSQLite

Sources/SQLite/Core/Result.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#if SQLITE_SWIFT_STANDALONE
1+
#if canImport(sqlite3)
22
import sqlite3
3-
#elseif SQLITE_SWIFT_SQLCIPHER
3+
#elseif canImport(SQLCipher)
44
import SQLCipher
55
#elseif canImport(SwiftToolchainCSQLite)
66
import SwiftToolchainCSQLite

Sources/SQLite/Core/Statement.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
// THE SOFTWARE.
2323
//
2424

25-
#if SQLITE_SWIFT_STANDALONE
25+
#if canImport(sqlite3)
2626
import sqlite3
27-
#elseif SQLITE_SWIFT_SQLCIPHER
27+
#elseif canImport(SQLCipher)
2828
import SQLCipher
2929
#elseif canImport(SwiftToolchainCSQLite)
3030
import SwiftToolchainCSQLite

Sources/SQLite/Helpers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
// THE SOFTWARE.
2323
//
2424

25-
#if SQLITE_SWIFT_STANDALONE
25+
#if canImport(sqlite3)
2626
import sqlite3
27-
#elseif SQLITE_SWIFT_SQLCIPHER
27+
#elseif canImport(SQLCipher)
2828
import SQLCipher
2929
#elseif canImport(SwiftToolchainCSQLite)
3030
import SwiftToolchainCSQLite

0 commit comments

Comments
 (0)