-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,38 @@ | ||
name: Tests | ||
name: Swift | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ master ] | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
|
||
name: Swift ${{ matrix.platform }} on ${{ matrix.os }} | ||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
platform: | ||
- platform=iPhone 16 Pro Max | ||
- platform=iPhone 16 Pro | ||
os: | ||
- 17.4 | ||
- 18.2 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build | ||
run: pod install | ||
- name: Run iOS tests | ||
run: xcodebuild test -workspace KKProgressToolbar.xcworkspace -scheme KKProgressToolbar -destination platform="iOS Simulator,name=iPhone 11 Pro" | ||
|
||
# Checkout the repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Install any dependencies | ||
- name: Install Dependencies | ||
run: swift package resolve | ||
|
||
# Run tests on ${{ matrix.platform }} with iOS ${{ matrix.os }} | ||
- name: Run Tests on ${{ matrix.platform }} (iOS ${{ matrix.os }}) | ||
run: | | ||
xcodebuild test \ | ||
-scheme 'KKProgressToolbar' \ | ||
-destination 'platform=iOS Simulator,name=${{ matrix.platform }},OS=${{ matrix.os }}' |