Add HEAD request to demo #88
This file contains 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: "Telegraph CI" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer | |
WORKSPACE: Telegraph.xcworkspace | |
jobs: | |
iOS: | |
name: Build iOS | |
runs-on: macos-latest | |
env: | |
SCHEME: Telegraph iOS | |
strategy: | |
matrix: | |
destination: ["iPhone SE (3rd generation)", "iPhone 8 Plus", "iPhone 14", "iPad Air (5th generation)", "iPad Pro (12.9-inch) (6th generation)"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build iOS | |
run: | | |
set -o pipefail | |
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "platform=iOS Simulator,name=${{ matrix.destination }}" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c; | |
tvOS: | |
name: Build tvOS | |
runs-on: macos-latest | |
env: | |
SCHEME: Telegraph tvOS | |
strategy: | |
matrix: | |
destination: ["Apple TV", "Apple TV 4K (3rd generation)"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build tvOS | |
run: | | |
set -o pipefail | |
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "platform=tvOS Simulator,name=${{ matrix.destination }}" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c; | |
macOS: | |
name: Build macOS | |
runs-on: macos-latest | |
env: | |
SCHEME: Telegraph macOS | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build macOS | |
run: | | |
set -o pipefail | |
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "platform=macOS,arch=x86_64" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c; | |
test: | |
name: Test | |
runs-on: macos-latest | |
env: | |
SCHEME: Telegraph iOS | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Test iOS | |
run: | | |
set -o pipefail | |
xcodebuild test -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "platform=iOS Simulator,name=iPhone 14 Pro" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES | xcpretty -c; |