Expose reconnect scheduling metrics #46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SwiftLint | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - "Source/**/*.swift" | |
| - "CocoaMQTTTests/**/*.swift" | |
| - ".swiftlint.yml" | |
| - "Package.swift" | |
| - "Package.resolved" | |
| - ".github/workflows/swiftlint.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| swiftlint: | |
| name: SwiftLint (SPM plugin) | |
| runs-on: macos-14 | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Run SwiftLint | |
| run: | | |
| swift package plugin --allow-writing-to-package-directory \ | |
| swiftlint \ | |
| --config .swiftlint.yml \ | |
| --strict \ | |
| --reporter github-actions-logging | |
| - name: Verify build is unaffected | |
| run: swift build | |
| - name: Ensure no tracked files changed | |
| run: git diff --exit-code |