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 2c3a137
Show file tree
Hide file tree
Showing 2 changed files with 51 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
45 changes: 37 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.0.0
# - 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,28 @@ 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 Xcodes
shell: bash
run: |
brew install aria2
brew tap robotsandpencils/made
brew install robotsandpencils/made/xcodes
- name: Install Simulator
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 2c3a137

Please sign in to comment.