From 7f7875349a783179560cb0151afd89e57fa2ae09 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Thu, 17 Mar 2022 12:23:51 +0000 Subject: [PATCH 1/2] Add API breaking changes test GH Action --- .github/workflows/api-breakage.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/api-breakage.yml diff --git a/.github/workflows/api-breakage.yml b/.github/workflows/api-breakage.yml new file mode 100644 index 00000000..ac01bbf0 --- /dev/null +++ b/.github/workflows/api-breakage.yml @@ -0,0 +1,19 @@ +name: API breaking changes + +on: + pull_request: + workflow_dispatch: + +jobs: + linux: + runs-on: ubuntu-latest + container: + image: swift:5.6-focal + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: API breaking changes + run: | + swift package diagnose-api-breaking-changes origin/main From 1370b332df71e251d3ff1799021c2559a15e2cf4 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Thu, 24 Mar 2022 12:41:42 +0000 Subject: [PATCH 2/2] swift format --- Tests/MQTTNIOTests/MQTTNIOTests.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/MQTTNIOTests/MQTTNIOTests.swift b/Tests/MQTTNIOTests/MQTTNIOTests.swift index 2d7bb1e8..a7ad33f6 100644 --- a/Tests/MQTTNIOTests/MQTTNIOTests.swift +++ b/Tests/MQTTNIOTests/MQTTNIOTests.swift @@ -95,7 +95,7 @@ final class MQTTNIOTests: XCTestCase { func testSSLConnect() throws { #if os(macOS) // p12 loading crashes when debugger other than Xcode is attached - guard !isVSCodeDebugging() else { throw XCTSkip() } + guard !self.isVSCodeDebugging() else { throw XCTSkip() } #endif let client = try createSSLClient(identifier: "testSSLConnect") @@ -108,7 +108,7 @@ final class MQTTNIOTests: XCTestCase { func testWebsocketAndSSLConnect() throws { #if os(macOS) // p12 loading crashes when debugger other than Xcode is attached - guard !isVSCodeDebugging() else { throw XCTSkip() } + guard !self.isVSCodeDebugging() else { throw XCTSkip() } #endif let client = try createWebSocketAndSSLClient(identifier: "testWebsocketAndSSLConnect") @@ -122,7 +122,7 @@ final class MQTTNIOTests: XCTestCase { func testSSLConnectFromP12() throws { #if os(macOS) // p12 loading crashes when debugger other than Xcode is attached - guard !isVSCodeDebugging() else { throw XCTSkip() } + guard !self.isVSCodeDebugging() else { throw XCTSkip() } #endif let client = try MQTTClient(