Skip to content

Support Github Actions #7

Support Github Actions

Support Github Actions #7

Workflow file for this run

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