Skip to content

Commit

Permalink
act
Browse files Browse the repository at this point in the history
  • Loading branch information
r-dent committed Feb 19, 2024
1 parent 7aa09c0 commit 9349846
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 23 deletions.
49 changes: 28 additions & 21 deletions .github/workflows/build-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Example/Example App/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down
2 changes: 1 addition & 1 deletion Sources/StreamDeckSimulator/StreamDeckSimulator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public final class StreamDeckSimulator {
close();

guard let scene = activeScene else {
return }
return }

lastSelectedProduct = product

Expand Down

0 comments on commit 9349846

Please sign in to comment.