Skip to content

Merge pull request #244 from wenbingzuo/fix-warning #19

Merge pull request #244 from wenbingzuo/fix-warning

Merge pull request #244 from wenbingzuo/fix-warning #19

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
xcode:
runs-on: macos-13
name: Action Tests (Swift 5.0)
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Cache Carthage
uses: actions/cache@v3
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-carthage-
- name: Bootstrap Carthage
run: carthage bootstrap --no-use-binaries --use-xcframeworks --cache-builds
- name: Tests
run: |
set -o pipefail && xcodebuild test clean SWIFT_VERSION=5.0 -workspace Action.xcworkspace -scheme Action -destination "platform=iOS Simulator,name=iPhone 14" | xcpretty -c --test
set -o pipefail && xcodebuild test clean SWIFT_VERSION=5.0 -workspace Action.xcworkspace -scheme Action-macOS -destination "arch=x86_64" | xcpretty -c --test
- name: Builds
run: |
set -o pipefail && xcodebuild build clean SWIFT_VERSION=5.0 -workspace Action.xcworkspace -scheme Action-watchOS -destination "platform=watchOS Simulator,name=Apple Watch Series 5 (44mm)" | xcpretty -c
set -o pipefail && xcodebuild build clean SWIFT_VERSION=5.0 -workspace Action.xcworkspace -scheme Action-tvOS -destination "platform=tvOS Simulator,name=Apple TV 4K (3rd generation) (at 1080p)" | xcpretty -c