Fix issues of github_actions #8
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: iOS Tests for Aware Core | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install xcpretty | |
| run: gem install xcpretty | |
| - name: Set up Xcode | |
| run: sudo xcode-select -s /Applications/Xcode.app | |
| - name: Cache Derived Data | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/Library/Developer/Xcode/DerivedData | |
| key: ${{ runner.os }}-xcode-deriveddata-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-xcode-deriveddata- | |
| - name: Run build | |
| run: | | |
| xcodebuild \ | |
| -scheme com.awareframework.ios.core \ | |
| -sdk iphonesimulator \ | |
| -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4' \ | |
| build | xcpretty | |
| - name: Run tests | |
| run: | | |
| xcodebuild \ | |
| -scheme com.awareframework.ios.core \ | |
| -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4' \ | |
| -sdk iphonesimulator \ | |
| -configuration Debug \ | |
| -enableCodeCoverage YES \ | |
| clean test | xcpretty |