Bump danger from 9.4.1 to 9.4.2 #168
Workflow file for this run
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
# GitHub Actions Virtual Environments | |
# https://github.com/actions/virtual-environments/ | |
name: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/ci.yml' | |
- 'Sources/**/*.*' | |
- 'Tests/**/*.*' | |
- 'Example/**/*.*' | |
pull_request: | |
branches: | |
- main | |
env: | |
PROJECT: Foil.xcodeproj | |
SCHEME: Foil | |
EXAMPLE_PROJECT: Example/ExampleApp.xcodeproj | |
EXAMPLE_SCHEME: ExampleApp | |
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer | |
IOS_DEST: "platform=iOS Simulator,name=iPhone 13 Mini,OS=latest" | |
TVOS_DEST: "platform=tvOS Simulator,name=Apple TV,OS=latest" | |
WATCHOS_DEST: "platform=watchOS Simulator,name=Apple Watch Series 8 (41mm),OS=latest" | |
MACOS_DEST: "platform=macOS,arch=x86_64" | |
jobs: | |
env-details: | |
name: Environment details | |
runs-on: macos-12 | |
steps: | |
- name: xcode version | |
run: xcodebuild -version -sdk | |
- name: list simulators | |
run: | | |
xcrun simctl delete unavailable | |
xcrun simctl list | |
test-iOS: | |
name: iOS unit test | |
runs-on: macos-12 | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: unit tests | |
run: | | |
set -o pipefail | |
xcodebuild clean test \ | |
-project "$PROJECT" \ | |
-scheme "$SCHEME" \ | |
-destination "$IOS_DEST" \ | |
CODE_SIGN_IDENTITY="-" | xcpretty -c | |
test-tvOS: | |
name: tvOS unit test | |
runs-on: macos-12 | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: unit tests | |
run: | | |
set -o pipefail | |
xcodebuild clean test \ | |
-project "$PROJECT" \ | |
-scheme "$SCHEME" \ | |
-destination "$TVOS_DEST" \ | |
CODE_SIGN_IDENTITY="-" | xcpretty -c | |
test-watchOS: | |
name: watchOS unit test | |
runs-on: macos-12 | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: test | |
run: | | |
set -o pipefail | |
xcodebuild clean test \ | |
-project "$PROJECT" \ | |
-scheme "$SCHEME" \ | |
-destination "$WATCHOS_DEST" \ | |
CODE_SIGN_IDENTITY="-" | xcpretty -c | |
test-macOS: | |
name: macOS unit test | |
runs-on: macos-12 | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: unit tests | |
run: | | |
set -o pipefail | |
xcodebuild clean test \ | |
-project "$PROJECT" \ | |
-scheme "$SCHEME" \ | |
-destination "$MACOS_DEST" \ | |
CODE_SIGN_IDENTITY="-" | xcpretty -c | |
build-example: | |
name: build example project | |
runs-on: macos-12 | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: build | |
run: | | |
set -o pipefail | |
xcodebuild clean build \ | |
-project "$EXAMPLE_PROJECT" \ | |
-scheme "$EXAMPLE_SCHEME" \ | |
-destination "$IOS_DEST" \ | |
CODE_SIGN_IDENTITY="-" | xcpretty -c |