Skip to content

Commit 32edd8a

Browse files
authored
Add GitHub Action + multiplatform tests (#11)
1 parent 539e7e9 commit 32edd8a

File tree

5 files changed

+23
-15
lines changed

5 files changed

+23
-15
lines changed

Diff for: .github/workflows/ci.yaml

+20-11
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,29 @@ on:
88

99
jobs:
1010
build:
11-
name: Swift ${{ matrix.swift }}
12-
runs-on: macos-latest
11+
name: ${{ matrix.platform }} on Xcode ${{ matrix.xcode }}
12+
runs-on: macos-13
1313
strategy:
1414
matrix:
15-
swift: ["5.6", "5.7", "5.8", "5.9"]
15+
platform: [macOS, iOS, tvOS, watchOS]
16+
xcode: [^14] # ^15
1617
steps:
1718
- uses: actions/checkout@v4
18-
19-
- uses: swift-actions/setup-swift@v1
20-
with:
21-
swift-version: ${{ matrix.swift }}
2219

23-
- name: Build
24-
run: swift build
20+
- name: Xcode Build
21+
uses: mxcl/xcodebuild@v1
22+
with:
23+
xcode: ${{ matrix.xcode }}
24+
platform: ${{ matrix.platform }}
25+
action: build
26+
configuration: debug
27+
scheme: Aptabase
2528

26-
- name: Run tests
27-
run: swift test
29+
- name: Xcode Test
30+
uses: mxcl/xcodebuild@v1
31+
with:
32+
xcode: ${{ matrix.xcode }}
33+
platform: ${{ matrix.platform }}
34+
action: test
35+
configuration: debug
36+
scheme: AptabaseTests

Diff for: Aptabase.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Aptabase'
3-
s.version = '0.2.3'
3+
s.version = '0.3.2'
44
s.summary = 'Swift SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps'
55
s.homepage = 'https://aptabase.com'
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

Diff for: Sources/Aptabase/Aptabase.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import TVUIKit
1212

1313
/// The Aptabase client used to track events.
1414
public class Aptabase: NSObject {
15-
private static var sdkVersion = "[email protected].0";
15+
private static var sdkVersion = "[email protected].2";
1616

1717
private var env = EnvironmentInfo.current()
1818
private var client: AptabaseClient?

Diff for: Sources/Aptabase/AptabaseClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22

33
internal class AptabaseClient {
4-
private static let sdkVersion = "[email protected].0";
4+
private static let sdkVersion = "[email protected].2";
55
// Session expires after 1 hour of inactivity
66
private static let sessionTimeout: TimeInterval = 1 * 60 * 60
77

Diff for: Sources/Aptabase/EventDispatcher.swift

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ protocol URLSessionProtocol {
2424

2525
extension URLSession: URLSessionProtocol {}
2626

27-
2827
public class EventDispatcher {
2928
private var events = ConcurrentQueue<Event>()
3029
private let MAX_BATCH_SIZE = 25

0 commit comments

Comments
 (0)