-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restoring Compatibility Tests (#1975)
# Summary - Restoring build.yml (Compatibility Tests) - renamed to `verify-older-os-compatibility.yml` # Ticket <ticket> COIOS-000 </ticket> --------- Co-authored-by: Alex Guretzki <alexander.guretzki@adyen.com>
- Loading branch information
Showing
3 changed files
with
112 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
name: Compatibility Test | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- develop | ||
- release/** | ||
|
||
jobs: | ||
tests: | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: false | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
|
||
- version: '17.2' | ||
runtime: 'iOS-17-2' | ||
device: 'iPhone 15' | ||
displayname: 'iPhone-15' | ||
os: 'macos-14-xlarge' | ||
xcode_version: '15.1' | ||
needs_custom_sim: false # Takes the shipped simulator that comes with Xcode 15 | ||
|
||
- version: '17.2' | ||
runtime: 'iOS-17-2' | ||
device: 'iPad Air (5th generation)' | ||
displayname: 'iPad-Air-5' | ||
os: 'macos-14-xlarge' | ||
xcode_version: '15.1' | ||
needs_custom_sim: false # Takes the shipped simulator that comes with Xcode 15 | ||
|
||
- version: '16.4' | ||
runtime: 'iOS-16-4' | ||
device: 'iPhone 14' | ||
displayname: 'iPhone-14' | ||
os: 'macos-13' | ||
xcode_version: '14.3' | ||
needs_custom_sim: false # Takes the shipped simulator that comes with Xcode 14 | ||
|
||
# Github deprecated macos-12 runners | ||
# so we have to find another solution to test on older iOS versions | ||
# | ||
# - version: '15.0' | ||
# runtime: 'iOS-15-0' | ||
# device: 'iPhone 13' | ||
# displayname: 'iPhone-13' | ||
# os: 'macos-12-xl' | ||
# needs_custom_sim: true | ||
# | ||
# - version: '14.2' | ||
# device: 'iPhone 12' | ||
# displayname: 'iPhone-12' | ||
# runtime: 'iOS-14-2' | ||
# os: 'macos-12-xl' | ||
# needs_custom_sim: true | ||
# | ||
# - version: '13.7' | ||
# runtime: 'iOS-13-7' | ||
# device: 'iPhone 11' | ||
# displayname: 'iPhone-11' | ||
# os: 'macos-12-xl' | ||
# needs_custom_sim: true | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: n1hility/cancel-previous-runs@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Prepare custom devices | ||
run: | | ||
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes | ||
- name: Select Xcode ${{ matrix.xcode_version }} | ||
if: matrix.xcode_version != '' | ||
run: | | ||
ls /Applications/Xcode_*.app | ||
sudo xcode-select -s /Applications/Xcode_${xcode_version}.app/Contents/Developer | ||
env: | ||
xcode_version: ${{ matrix.xcode_version }} | ||
|
||
- name: Download simulator if needed (${{ matrix.version }}) | ||
if: matrix.needs_custom_sim | ||
run: | | ||
xcversion simulators --install="iOS ${version}" | ||
env: | ||
version: ${{ matrix.version }} | ||
|
||
- name: Create simulator ${{ matrix.version }} | ||
run: | | ||
xcrun simctl list devices ${version} | ||
xcrun simctl create ${displayname} "${device}" "com.apple.CoreSimulator.SimRuntime.${runtime}" | ||
env: | ||
version: ${{ matrix.version }} | ||
displayname: ${{ matrix.displayname }} | ||
device: ${{ matrix.device }} | ||
runtime: ${{ matrix.runtime }} | ||
|
||
- name: Build and test | ||
run: | | ||
xcodebuild -version | ||
xcodebuild build test -project ${project} -scheme "${scheme}" ${params} -destination "${destination}" ## | xcpretty --utf --color && exit ${PIPESTATUS[0]} | ||
env: | ||
project: 'Adyen.xcodeproj' | ||
params: "-skipPackagePluginValidation" | ||
scheme: 'IntegrationUIKitTests' | ||
destination: "OS=${{ matrix.version }},name=${{ matrix.displayname }}" |
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
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