diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 4c33ed3e..b023e5d5 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -7,22 +7,35 @@ on: pull_request: jobs: - build: - name: Build and Test using Xcode 15.3 on iPhone 15 Pro + format: runs-on: macos-14 + steps: + - name: Install tools + run: brew install swiftlint + + - name: Checkout maplibre-swiftui-dsl-playground + uses: actions/checkout@v4 + + - name: Check format + run: swiftlint lint . --reporter github-actions-logging + test: + name: Build and Test using Xcode 15.3 on iPhone 15 Pro + runs-on: macos-14 steps: - - name: Configure Xcode 15.3 - run: | - sudo xcode-select -s /Applications/Xcode_15.3.app - - name: Print Xcode Version - run: | - xcode-select --print-path + - name: Install tools + run: brew install xcbeautify + + - name: Setup Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - name: Checkout uses: actions/checkout@v4 + - name: Build - run: | - set -o pipefail && xcodebuild build -scheme maplibre-navigation-ios -destination 'platform=iOS Simulator,OS=17.0.1,name=iPhone 15 Pro' -skipPackagePluginValidation | xcbeautify --renderer github-actions + run: set -o pipefail && xcodebuild build -scheme maplibre-navigation-ios -destination 'platform=iOS Simulator,OS=17.0.1,name=iPhone 15 Pro' | xcbeautify --renderer github-actions + - name: Test - run: | - set -o pipefail && xcodebuild test -scheme maplibre-navigation-ios -destination 'platform=iOS Simulator,OS=17.0.1,name=iPhone 15 Pro' -skipPackagePluginValidation | xcbeautify --renderer github-actions \ No newline at end of file + run: set -o pipefail && xcodebuild test -scheme maplibre-navigation-ios -destination 'platform=iOS Simulator,OS=17.0.1,name=iPhone 15 Pro' | xcbeautify --renderer github-actions \ No newline at end of file diff --git a/.swiftlint.yml b/.swiftlint.yml index 1fe948af..926c619e 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -14,6 +14,7 @@ excluded: # paths to ignore during linting. Takes precedence over `included`. - MapboxCoreNavigationTests - MapboxNavigationTests - scripts + - .build identifier_name: max_length: