From 89b73c739f535a216380c6c79a9d3fbf052e2b03 Mon Sep 17 00:00:00 2001 From: Nikolay Volosatov Date: Thu, 9 May 2024 22:09:17 +0100 Subject: [PATCH] Run tests on different OS versions --- .github/workflows/unit-tests.yml | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index ed6da015b..d2eaea4ed 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -14,13 +14,28 @@ jobs: strategy: fail-fast: false matrix: - platform: - - iOS - - macOS - - watchOS - - tvOS - - mac-catalyst - - visionOS + include: + - platform: iOS + os-version: latest + - platform: iOS + os-version: 12.0 + - platform: macOS + os-version: latest + - platform: macOS + os-version: 10.14 + - platform: watchOS + os-version: latest + - platform: watchOS + os-version: 5.0 + - platform: tvOS + os-version: latest + - platform: tvOS + os-version: 12.0 + - platform: mac-catalyst + os-version: latest + - platform: mac-catalyst + os-version: 10.14 + - platform: visionOS steps: - name: Checkout Code uses: actions/checkout@v4 @@ -31,8 +46,9 @@ jobs: xcode-version: latest-stable - name: Run Unit Tests - uses: bamx23/xcodebuild@vision-os + uses: bamx23/xcodebuild@os-version with: workspace: ".swiftpm/xcode/package.xcworkspace" scheme: "KSCrash-Package" platform: ${{ matrix.platform }} + os-version: ${{ matrix.os-version }}