feat: add watchOS and tvOS support to iOS SDK #5
This file contains hidden or 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
name: CI | |
on: | |
pull_request: | |
branches: | |
- "main" | |
push: | |
branches: | |
- "main" | |
jobs: | |
Tests: | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
platform: [iOS, macOS, watchOS, tvOS] | |
include: | |
- platform: iOS | |
destination: "platform=iOS Simulator,name=iPhone 15" | |
- platform: macOS | |
destination: "platform=macOS" | |
- platform: watchOS | |
destination: "platform=watchOS Simulator,name=Apple Watch Series 10 (42mm)" | |
- platform: tvOS | |
destination: "platform=tvOS Simulator,name=Apple TV" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build and Test on ${{ matrix.platform }} | |
run: | | |
if [ "${{ matrix.platform }}" = "macOS" ]; then | |
swift test | |
else | |
xcodebuild test \ | |
-workspace .swiftpm/xcode/package.xcworkspace \ | |
-scheme OpenFeature \ | |
-destination "${{ matrix.destination }}" | |
fi | |
SwiftLint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: GitHub Action for SwiftLint | |
uses: norio-nomura/action-swiftlint@3.2.1 | |
with: | |
args: --config .swiftlint.yml |