-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated packages to add supported platform as iOS 9+ * adding github actions * adding MacOS 10.11 + as a platform so tests can be run successfully * roll up CI all in one workflow * adding gemfile for cocoapods * check available runners * adding CI badge to readme and updating iOS for lower XCode version test runs * add simulator set up step for XCode 11 and 12 * fixing iOS versions * create custom test devices for XCode 11 and 12 runs * adding device type * boot custom device and run tests on custom device * use pbcopy and pbpaste * list devices and try double quote * updating minimum deployment target for test host app so it can be run on lower versions of iOS * set iOS deployment target to 9.0+ on tests target * adding proper job names
- Loading branch information
Showing
10 changed files
with
263 additions
and
20 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,117 @@ | ||
name: CI | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
pod-lint-10_15: | ||
name: Pod lint | ||
runs-on: macos-10.15 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Bundle install | ||
run: bundle install | ||
|
||
- name: Set up XCode Version | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
|
||
- name: Pod lint | ||
run: bundle exec pod lib lint --verbose --fail-fast --swift-version=5.5 | ||
shell: bash | ||
|
||
test-no-iOS-host-10_15: | ||
name: Run swift tests that don't require iOS host on MacOS 10.15 | ||
runs-on: macos-10.15 | ||
strategy: | ||
matrix: | ||
# latest 11 and all available versions 12 | ||
xcodeVersions: ['11.7', '12.0', '12.1', '12.2', '12.3', '12.4'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up XCode Version | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: ${{ matrix.xcodeVersions }} | ||
|
||
- name: Run tests that don't require iOS host | ||
run: swift test -c debug -Xswiftc -enable-testing | ||
shell: bash | ||
|
||
test-no-iOS-host-11: | ||
name: Run swift tests that don't require iOS host on MacOS 11 | ||
runs-on: macos-11 | ||
strategy: | ||
matrix: | ||
# latest 12 and all available versions 13 | ||
xcodeVersions: ['12.5', '13.0', '13.1'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up XCode Version | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: ${{ matrix.xcodeVersions }} | ||
|
||
- name: Run tests that don't require iOS host | ||
run: swift test -c debug -Xswiftc -enable-testing | ||
shell: bash | ||
|
||
test-keychain-iOS-host-10_15-XCode11: | ||
name: Run swift tests that require keychain entitlement on XCode 11 | ||
runs-on: macos-10.15 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up XCode Version | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: '11.7' | ||
|
||
- name: Run tests that require iOS host for keychain entitlement | ||
run: xcodebuild -project SecureStorageTestsHostApp/SecureStorageTestsHostApp.xcodeproj -scheme SecureStorageTestsHostApp -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 11,OS=13.7" test | ||
shell: bash | ||
|
||
test-keychain-iOS-host-11-XCode12: | ||
name: Run swift tests that require keychain entitlement on XCode 12 | ||
runs-on: macos-11 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up XCode Version | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: '12.5' | ||
|
||
- name: Run tests that require iOS host for keychain entitlement | ||
run: xcodebuild -project SecureStorageTestsHostApp/SecureStorageTestsHostApp.xcodeproj -scheme SecureStorageTestsHostApp -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 12,OS=14.5" test | ||
shell: bash | ||
|
||
test-keychain-iOS-host-11-XCode13: | ||
name: Run swift tests that require keychain entitlement on XCode 13 | ||
runs-on: macos-11 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up XCode Version | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
|
||
- name: Run tests that require iOS host for keychain entitlement | ||
run: xcodebuild -project SecureStorageTestsHostApp/SecureStorageTestsHostApp.xcodeproj -scheme SecureStorageTestsHostApp -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 13,OS=15.0" test | ||
shell: bash |
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,9 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | ||
|
||
# gem "rails" | ||
|
||
gem "cocoapods", "~> 1.10" |
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,96 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
CFPropertyList (3.0.5) | ||
rexml | ||
activesupport (5.2.6) | ||
concurrent-ruby (~> 1.0, >= 1.0.2) | ||
i18n (>= 0.7, < 2) | ||
minitest (~> 5.1) | ||
tzinfo (~> 1.1) | ||
addressable (2.8.0) | ||
public_suffix (>= 2.0.2, < 5.0) | ||
algoliasearch (1.27.5) | ||
httpclient (~> 2.8, >= 2.8.3) | ||
json (>= 1.5.1) | ||
atomos (0.1.3) | ||
claide (1.0.3) | ||
cocoapods (1.10.2) | ||
addressable (~> 2.6) | ||
claide (>= 1.0.2, < 2.0) | ||
cocoapods-core (= 1.10.2) | ||
cocoapods-deintegrate (>= 1.0.3, < 2.0) | ||
cocoapods-downloader (>= 1.4.0, < 2.0) | ||
cocoapods-plugins (>= 1.0.0, < 2.0) | ||
cocoapods-search (>= 1.0.0, < 2.0) | ||
cocoapods-trunk (>= 1.4.0, < 2.0) | ||
cocoapods-try (>= 1.1.0, < 2.0) | ||
colored2 (~> 3.1) | ||
escape (~> 0.0.4) | ||
fourflusher (>= 2.3.0, < 3.0) | ||
gh_inspector (~> 1.0) | ||
molinillo (~> 0.6.6) | ||
nap (~> 1.0) | ||
ruby-macho (~> 1.4) | ||
xcodeproj (>= 1.19.0, < 2.0) | ||
cocoapods-core (1.10.2) | ||
activesupport (> 5.0, < 6) | ||
addressable (~> 2.6) | ||
algoliasearch (~> 1.0) | ||
concurrent-ruby (~> 1.1) | ||
fuzzy_match (~> 2.0.4) | ||
nap (~> 1.0) | ||
netrc (~> 0.11) | ||
public_suffix | ||
typhoeus (~> 1.0) | ||
cocoapods-deintegrate (1.0.5) | ||
cocoapods-downloader (1.5.1) | ||
cocoapods-plugins (1.0.0) | ||
nap | ||
cocoapods-search (1.0.1) | ||
cocoapods-trunk (1.6.0) | ||
nap (>= 0.8, < 2.0) | ||
netrc (~> 0.11) | ||
cocoapods-try (1.2.0) | ||
colored2 (3.1.2) | ||
concurrent-ruby (1.1.9) | ||
escape (0.0.4) | ||
ethon (0.15.0) | ||
ffi (>= 1.15.0) | ||
ffi (1.15.4) | ||
fourflusher (2.3.1) | ||
fuzzy_match (2.0.4) | ||
gh_inspector (1.1.3) | ||
httpclient (2.8.3) | ||
i18n (1.8.11) | ||
concurrent-ruby (~> 1.0) | ||
json (2.6.1) | ||
minitest (5.14.4) | ||
molinillo (0.6.6) | ||
nanaimo (0.3.0) | ||
nap (1.1.0) | ||
netrc (0.11.0) | ||
public_suffix (4.0.6) | ||
rexml (3.2.5) | ||
ruby-macho (1.4.0) | ||
thread_safe (0.3.6) | ||
typhoeus (1.4.0) | ||
ethon (>= 0.9.0) | ||
tzinfo (1.2.9) | ||
thread_safe (~> 0.1) | ||
xcodeproj (1.21.0) | ||
CFPropertyList (>= 2.3.3, < 4.0) | ||
atomos (~> 0.1.3) | ||
claide (>= 1.0.2, < 2.0) | ||
colored2 (~> 3.1) | ||
nanaimo (~> 0.3.0) | ||
rexml (~> 3.2.4) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
cocoapods (~> 1.10) | ||
|
||
BUNDLED WITH | ||
2.0.2 |
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
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
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
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