Skip to content

Commit

Permalink
add swiftlint to build action
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Kladek committed Apr 17, 2024
1 parent de877e0 commit a124bf7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ excluded: # paths to ignore during linting. Takes precedence over `included`.
- MapboxCoreNavigationTests
- MapboxNavigationTests
- scripts
- .build

identifier_name:
max_length:
Expand Down

0 comments on commit a124bf7

Please sign in to comment.