diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2a2ac5d8..3fd104ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ on: push: - branches: + branches: - master name: Build jobs: @@ -10,14 +10,23 @@ jobs: strategy: matrix: destination: [ - 'platform=iOS Simulator,OS=12.4,name=iPhone X', - 'platform=tvOS Simulator,OS=12.4,name=Apple TV 4'] + 'platform=iOS Simulator,OS=16.2,name=iPhone 14', + 'platform=tvOS Simulator,OS=16.1,name=Apple TV 4'] steps: - name: Checkout uses: actions/checkout@master - name: Build run: | pod install - set -o pipefail && xcodebuild clean build -workspace Hero.xcworkspace -scheme Hero -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO - env: - destination: ${{ matrix.destination }} \ No newline at end of file + set -o pipefail && \ + xcodebuild clean build \ + -workspace Hero.xcworkspace \ + -scheme Hero \ + -destination "${destination}" \ + -parallelizeTargets -showBuildTimingSummary \ + -enableCodeCoverage YES \ + CODE_SIGN_IDENTITY="" \ + CODE_SIGNING_REQUIRED=NO \ + | xcpretty + env: + destination: ${{ matrix.destination }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eba75f01..b034d377 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,13 +10,13 @@ on: - "**.podspec" - "Podfile" - "Podfile.lock" - - "test.yml" + - "**/test.yml" jobs: swiftpm: name: Test iOS (swiftpm) runs-on: macOS-latest env: - DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer + DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer steps: - name: Checkout uses: actions/checkout@master @@ -28,11 +28,11 @@ jobs: name: Test iOS runs-on: macOS-latest env: - DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer + DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer strategy: matrix: destination: [ - 'platform=iOS Simulator,OS=14.4,name=iPhone 12' + 'platform=iOS Simulator,iOS=16.2,name=iPhone 14' ] steps: - name: Checkout