From 381725d343ac8aabe4c53c10def09d2eab4d52b5 Mon Sep 17 00:00:00 2001 From: Jeff Lin Date: Tue, 28 Feb 2023 22:29:12 +0800 Subject: [PATCH] rework for ci config --- .github/workflows/CI.yml | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 901fb58..dd01c30 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,25 +1,33 @@ -name: "AppDevKit CI" - +--- +name: AppDevKit CI on: push: branches: - master pull_request: branches: - - '*' - + - master jobs: + test: + runs-on: macos-latest + strategy: + matrix: + destination: + - platform=iOS Simulator,OS=latest,name=iPhone 14 Pro Max + steps: + - name: Checkout + uses: actions/checkout@master + - name: Test + run: xcodebuild clean test -workspace AppDevKit.xcworkspace -scheme AppDevKit + -destination "${destination}" CODE_SIGN_IDENTITY="" + CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO + env: + destination: ${{ matrix.destination }} Pods: name: Cocoapods Lint (Latest Stable Xcode) - runs-on: macOS-11 + runs-on: macos-latest steps: - name: Checkout - uses: actions/checkout@v2 - - - name: Setup Xcode version - uses: maxim-lobanov/setup-xcode@v1.4.0 - with: - xcode-version: latest-stable - + uses: actions/checkout@master - name: Run pod lib lint run: pod lib lint --fail-fast --allow-warnings