From 6771412403183674d50a382fb1ae8dc411660d56 Mon Sep 17 00:00:00 2001 From: Suyeol Jeon Date: Sun, 8 Sep 2019 01:17:00 +0900 Subject: [PATCH] Add workflow --- .github/workflows/ci.yml | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6a6f462 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 }}