From 8c21d27038b3a7c5a534b234c2ae1497c24d945e Mon Sep 17 00:00:00 2001 From: iOS991 Date: Sat, 17 Feb 2024 20:01:18 +0530 Subject: [PATCH] Update ios.yml --- .github/workflows/ios.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 188332b..510f9b0 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -8,18 +8,35 @@ on: jobs: test: - name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + name: Test on ${{ matrix.platform.os }} using Xcode ${{ matrix.xcode }} + runs-on: macos-13 + + env: + xcodeproj: PlistDesign.xcodeproj + strategy: matrix: - os: [macos-latest] - swift: ["5.8"] - runs-on: ${{ matrix.os }} + platform: + - { os: iOS, scheme: PlistDesign } + xcode: + - '15.0.1' + steps: - name: Checkout uses: actions/checkout@v3 + + - name: Set up environment + uses: ./.github/actions/setup + with: + xcode: ${{ matrix.xcode }} + - name: Run tests - run: | - xcodebuild clean test -xcodeproj "PlistDesign.xcodeproj" -scheme "PlistDesignTests" -destination "platform=iOS Simulator,name=iPhone 12 Pro,OS=latest" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO + uses: ./.github/actions/test + with: + xcode: ${{ matrix.xcode }} + scheme: ${{ matrix.platform.scheme }} + platform: ${{ matrix.platform.os }} + swiftlint: name: Lint code with SwiftLint runs-on: macos-latest