diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..d96fb49 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,19 @@ +name: Swift + +on: + push: + branches: [ "master", "development" ] + pull_request: + branches: [ "master", "development" ] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b90dafc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: objective-c -xcode_project: Socket.IO-Client-Swift.xcodeproj # path to your xcodeproj folder -xcode_scheme: SocketIO-Mac -osx_image: xcode12.2 -branches: - only: - - master - - development -before_install: - # - brew update - # - brew outdated xctool || brew upgrade xctool - # - brew outdated carthage || brew upgrade carthage - - carthage update --platform macosx -script: - - xcodebuild -project Socket.IO-Client-Swift.xcodeproj -scheme SocketIO build test -quiet -# - xcodebuild -project Socket.IO-Client-Swift.xcodeproj -scheme SocketIO build-for-testing -quiet -# - xctool -project Socket.IO-Client-Swift.xcodeproj -scheme SocketIO run-tests --parallelize - - swift test diff --git a/Source/SocketIO/Ack/SocketAckEmitter.swift b/Source/SocketIO/Ack/SocketAckEmitter.swift index f8a3ecd..0306f29 100644 --- a/Source/SocketIO/Ack/SocketAckEmitter.swift +++ b/Source/SocketIO/Ack/SocketAckEmitter.swift @@ -28,7 +28,7 @@ import Foundation /// A class that represents a waiting ack call. /// /// **NOTE**: You should not store this beyond the life of the event handler. -public final class SocketAckEmitter : NSObject { +public final class SocketAckEmitter: NSObject { private unowned let socket: SocketIOClient private let ackNum: Int @@ -101,7 +101,7 @@ public final class SocketAckEmitter : NSObject { /// ... /// } /// ``` -public final class OnAckCallback : NSObject { +public final class OnAckCallback: NSObject { private let ackNumber: Int private let binary: Bool private let items: [Any]