Separate pacakges? #96
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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| get-environment-details: | |
| name: Get Environment Details | |
| runs-on: macOS-15 | |
| steps: | |
| - name: Print OS SDKs | |
| run: xcodebuild -version -sdk | |
| - name: Print simulators | |
| run: | | |
| xcrun simctl delete unavailable | |
| xcrun simctl list | |
| test-iOS: | |
| name: Test on Latest iOS | |
| runs-on: macOS-15 | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@master | |
| - name: Run tests | |
| run: | | |
| set -o pipefail | |
| xcodebuild clean test -scheme PersistentKeyValueKit -sdk iphonesimulator -destination "name=iPhone 16 Pro" -configuration Debug -enableCodeCoverage YES | xcpretty -c | |
| test-macOS: | |
| name: Test on Latest macOS | |
| runs-on: macOS-15 | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@master | |
| - name: Run Tests | |
| run: swift test | |
| test-tvOS: | |
| name: Test on Latest tvOS | |
| runs-on: macOS-15 | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@master | |
| - name: Run tests | |
| run: | | |
| set -o pipefail | |
| xcodebuild clean test -scheme PersistentKeyValueKit -sdk appletvsimulator -destination "name=Apple TV 4K (3rd generation)" -configuration Debug -enableCodeCoverage YES | xcpretty -c | |
| test-watchOS: | |
| name: Test on Latest watchOS | |
| runs-on: macOS-15 | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@master | |
| - name: Run tests | |
| run: | | |
| set -o pipefail | |
| xcodebuild clean test -scheme PersistentKeyValueKit -sdk watchsimulator -destination "name=Apple Watch Ultra 2 (49mm)" -configuration Debug -enableCodeCoverage YES | xcpretty -c |