ci(ios): run lint checks #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
paths: | |
- 'ios/**' | |
jobs: | |
lint_and_tests: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Swift | |
uses: fwal/setup-swift@v2 | |
with: | |
swift-version: '5.10' | |
- name: Select Xcode Version | |
run: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer | |
- name: Clean Derived Data | |
run: | | |
rm -rf ~/Library/Developer/Xcode/DerivedData | |
- name: Run Unit Tests | |
run: | | |
xcodebuild test \ | |
-project ios/MeasureSDK.xcodeproj \ | |
-scheme MeasureSDK \ | |
-sdk iphonesimulator \ | |
-destination 'platform=iOS Simulator,name=iPhone 15 Pro' \ | |
ONLY_ACTIVE_ARCH=YES |