Skip to content

Commit

Permalink
Run tests on different OS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bamx23 committed May 9, 2024
1 parent a3c5059 commit 66b3ecd
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 22 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/cocoapods-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ jobs:
include:
- platform: iOS
config: ""
- platform: iOS
config: "--use-libraries"
- platform: iOS
config: "--use-libraries --use-modular-headers"
- platform: iOS
config: "--use-static-frameworks"
- platform: macOS
config: ""
- platform: tvOS
config: ""
- platform: watchOS
config: ""
- platform: visionOS
config: ""
# - platform: iOS
# config: "--use-libraries"
# - platform: iOS
# config: "--use-libraries --use-modular-headers"
# - platform: iOS
# config: "--use-static-frameworks"
# - platform: macOS
# config: ""
# - platform: tvOS
# config: ""
# - platform: watchOS
# config: ""
# - platform: visionOS
# config: ""
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
39 changes: 31 additions & 8 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,23 @@ jobs:
strategy:
fail-fast: false
matrix:
platform:
- iOS
- macOS
- watchOS
- tvOS
- mac-catalyst
- visionOS
include:
- platform: iOS
- platform: iOS
os-version: 12.4
# - platform: macOS
# - platform: macOS
# os-version: ~10.14.0
# - platform: watchOS
# - platform: watchOS
# os-version: ~5.0.0
# - platform: tvOS
# - platform: tvOS
# os-version: ~12.0.0
# - platform: mac-catalyst
# - platform: mac-catalyst
# os-version: ~10.14.0
# - platform: visionOS
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -30,9 +40,22 @@ jobs:
with:
xcode-version: latest-stable

- name: Cache
if: ${{ matrix.os-version }}
uses: actions/cache@v3
with:
path: "~/Downloads"
key: ${{ runner.os }}-runtimes-downloads-${{ matrix.platform }}-${{ matrix.os-version }}

- name: Install Simulator
if: ${{ matrix.os-version }}
shell: bash
run: sudo xcodes runtimes install --keep-archive '${{ matrix.platform }} ${{ matrix.os-version }}'

- 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 }}"

0 comments on commit 66b3ecd

Please sign in to comment.