diff --git a/.github/workflows/build-and-lint.yml b/.github/workflows/build-and-lint.yml index 1bdb96d0..e5b48e45 100644 --- a/.github/workflows/build-and-lint.yml +++ b/.github/workflows/build-and-lint.yml @@ -7,28 +7,35 @@ on: - '.swiftlint.yml' - '**/*.swift' jobs: - lint: - runs-on: macos-14 + SwiftLint: + runs-on: ubuntu-latest steps: - - name: Print job info - run: | - echo "The job was triggered by a ${{ github.event_name }} event and is now running on a ${{ runner.os }} server." - echo "The repository is ${{ github.repository }} and the branch is ${{ github.ref }}." - echo "Available XCode versions:" - sudo ls -1 /Applications | grep "Xcode" - echo "Selected XCode version:" - /usr/bin/xcodebuild -version + - uses: actions/checkout@v4 + - name: GitHub Action for SwiftLint + uses: norio-nomura/action-swiftlint - - name: Check out repository code - uses: actions/checkout@v4 + # lint: + # runs-on: macos-14 + # steps: + # - name: Print job info + # run: | + # echo "The job was triggered by a ${{ github.event_name }} event and is now running on a ${{ runner.os }} server." + # echo "The repository is ${{ github.repository }} and the branch is ${{ github.ref }}." + # echo "Available XCode versions:" + # sudo ls -1 /Applications | grep "Xcode" + # echo "Selected XCode version:" + # /usr/bin/xcodebuild -version - - name: Install SwiftLint - run: | - bundle install - cd Example - bundle exec pod install + # - name: Check out repository code + # uses: actions/checkout@v4 - - name: Run SwitLint - run: | - cd Example - ./Pods/SwiftLint/swiftlint + # - name: Install SwiftLint + # run: | + # bundle install + # cd Example + # bundle exec pod install + + # - name: Run SwitLint + # run: | + # cd Example + # ./Pods/SwiftLint/swiftlint diff --git a/Example/Example App/ContentView.swift b/Example/Example App/ContentView.swift index 8c9f5a45..b4ab6bc9 100644 --- a/Example/Example App/ContentView.swift +++ b/Example/Example App/ContentView.swift @@ -27,7 +27,7 @@ struct ContentView: View { Button("Start the Stream Deck Simulator") { StreamDeckSimulator.show(streamDeck: .mini) } - } else { ForEach(devices) { device in + } else { ForEach(devices) { device in VStack(alignment: .leading) { Text("__\(device.info.productName)__") Text("Serial: \(device.info.serialNumber)") diff --git a/Sources/StreamDeckSimulator/StreamDeckSimulator.swift b/Sources/StreamDeckSimulator/StreamDeckSimulator.swift index 9ef04f6b..316c5076 100644 --- a/Sources/StreamDeckSimulator/StreamDeckSimulator.swift +++ b/Sources/StreamDeckSimulator/StreamDeckSimulator.swift @@ -55,7 +55,7 @@ public final class StreamDeckSimulator { close(); guard let scene = activeScene else { - return } + return } lastSelectedProduct = product