diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc0f08d..2eef56a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,31 +8,17 @@ on: jobs: build: - name: Swift ${{ matrix.platform }} on ${{ matrix.os }} - runs-on: macos-latest - strategy: matrix: platform: - - platform=iPhone 16 Pro Max - - platform=iPhone 16 Pro - os: - - 17.4 - - 18.2 - + - iOS + platform-version: + - ^15 + - ^16 + - ^17 + runs-on: macos-latest steps: - - # Checkout the repository - - name: Checkout repository - uses: actions/checkout@v4 - - # Install any dependencies - - name: Install Dependencies - run: swift package resolve - - # Run tests on ${{ matrix.platform }} with iOS ${{ matrix.os }} - - name: Run Tests on ${{ matrix.platform }} (iOS ${{ matrix.os }}) - run: | - xcodebuild test \ - -scheme 'KKProgressToolbar' \ - -destination 'platform=iOS Simulator,name=${{ matrix.platform }},OS=${{ matrix.os }}' + - uses: mxcl/xcodebuild@v3 + with: + platform-version: ${{ matrix.platform-version }} + platform: ${{ matrix.platform }}