Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
devxoul committed Sep 7, 2019
1 parent 0b10ab5 commit 6771412
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
test:
runs-on: macOS-latest
strategy:
matrix:
env:
- sdk: iphonesimulator11.4
destination: platform=iOS Simulator,name=iPhone 8,OS=11.4
xcode: /Applications/Xcode_9.4.1.app

- sdk: iphonesimulator12.4
destination: platform=iOS Simulator,name=iPhone 8,OS=12.4
xcode: /Applications/Xcode_10.3.app

- sdk: iphonesimulator13.0
destination: platform=iOS Simulator,name=iPhone 8,OS=13.0
xcode: /Applications/Xcode_11.app

steps:
- uses: actions/checkout@v1

- name: Select Xcode
run: sudo xcode-select -s ${{ matrix.env.xcode }}

- name: Build and Test
run: |
set -o pipefail && xcodebuild clean build test \
-project "$PROJECT" \
-scheme "$SCHEME" \
-sdk "$SDK" \
-destination "$DESTINATION" \
-configuration Debug \
-enableCodeCoverage YES \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
env:
PROJECT: UITextView+Placeholder.xcodeproj
SCHEME: UITextView+Placeholder
SDK: ${{ matrix.env.sdk }}
DESTINATION: ${{ matrix.env.destination }}

0 comments on commit 6771412

Please sign in to comment.