diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index caaea16d..e669108e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,14 +14,25 @@ concurrency: jobs: unit-tests: name: Unit Tests (${{ matrix.build.sdk }}) - runs-on: macos-14 + runs-on: ${{ matrix.build.runs-on }} timeout-minutes: 30 strategy: matrix: - build: [ - { sdk: 'iphonesimulator', destination: 'platform=iOS Simulator,OS=17.5,name=iPhone 15 Pro', action: 'test' }, - { sdk: 'xros', destination: 'platform=visionOS Simulator,OS=1.2,name=Apple Vision Pro', action: 'build' } - ] + build: + [ + { + sdk: "iphonesimulator", + destination: "platform=iOS Simulator,OS=18.0,name=iPhone 16 Pro", + action: "test", + runs-on: "macos-14", + }, + { + sdk: "xros", + destination: "platform=visionOS Simulator,OS=2.1,name=Apple Vision Pro", + action: "build", + runs-on: "macos-15", + }, + ] steps: - name: Checkout the repository uses: actions/checkout@v4 @@ -30,8 +41,10 @@ jobs: xcode-version: latest-stable - name: Check environment run: | - xcodebuild -version - swift --version + set -ex + xcodebuild -version + swift --version + xcrun simctl list - name: Run Tests run: | set -o pipefail && \ @@ -78,8 +91,10 @@ jobs: xcode-version: latest-stable - name: Check environment run: | - xcodebuild -version - swift --version + set -ex + xcodebuild -version + swift --version + xcrun simctl list - name: Run tests run: swift test --parallel --enable-code-coverage - name: Generate code coverage reports