diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ab1a60..c14e60f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,14 +13,17 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true jobs: - test: + xcode15_test: name: Test timeout-minutes: 30 runs-on: macOS-14 env: - DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer + DEVELOPER_DIR: /Applications/Xcode_15.3.app strategy: matrix: destination: @@ -29,7 +32,26 @@ jobs: - "platform=tvOS Simulator,name=Apple TV" - "platform=watchOS Simulator,name=Apple Watch Series 6 (40mm)" - "platform=macOS,variant=Mac Catalyst" + steps: + - uses: actions/checkout@v4 + - name: Test platform ${{ matrix.destination }} + run: set -o pipefail && xcodebuild -scheme Queue -destination "${{ matrix.destination }}" test | xcbeautify + xcode16_test: + name: Test + timeout-minutes: 30 + runs-on: macOS-15 + env: + DEVELOPER_DIR: /Applications/Xcode_16.1.app + strategy: + matrix: + destination: + - "platform=macOS" + - "platform=macOS,variant=Mac Catalyst" + - "platform=iOS Simulator,name=iPhone 16" + - "platform=tvOS Simulator,name=Apple TV" + - "platform=watchOS Simulator,name=Apple Watch Series 10 (42mm)" + - "platform=visionOS Simulator,name=Apple Vision Pro" steps: - uses: actions/checkout@v4 - name: Test platform ${{ matrix.destination }}