Skip to content

Commit a124bf7

Browse files
add swiftlint to build action
1 parent de877e0 commit a124bf7

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

.github/workflows/ios.yml

+25-12
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,35 @@ on:
77
pull_request:
88

99
jobs:
10-
build:
11-
name: Build and Test using Xcode 15.3 on iPhone 15 Pro
10+
format:
1211
runs-on: macos-14
12+
steps:
13+
- name: Install tools
14+
run: brew install swiftlint
15+
16+
- name: Checkout maplibre-swiftui-dsl-playground
17+
uses: actions/checkout@v4
18+
19+
- name: Check format
20+
run: swiftlint lint . --reporter github-actions-logging
1321

22+
test:
23+
name: Build and Test using Xcode 15.3 on iPhone 15 Pro
24+
runs-on: macos-14
1425
steps:
15-
- name: Configure Xcode 15.3
16-
run: |
17-
sudo xcode-select -s /Applications/Xcode_15.3.app
18-
- name: Print Xcode Version
19-
run: |
20-
xcode-select --print-path
26+
- name: Install tools
27+
run: brew install xcbeautify
28+
29+
- name: Setup Xcode
30+
uses: maxim-lobanov/setup-xcode@v1
31+
with:
32+
xcode-version: latest-stable
33+
2134
- name: Checkout
2235
uses: actions/checkout@v4
36+
2337
- name: Build
24-
run: |
25-
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
38+
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
39+
2640
- name: Test
27-
run: |
28-
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
41+
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

.swiftlint.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ excluded: # paths to ignore during linting. Takes precedence over `included`.
1414
- MapboxCoreNavigationTests
1515
- MapboxNavigationTests
1616
- scripts
17+
- .build
1718

1819
identifier_name:
1920
max_length:

0 commit comments

Comments
 (0)