-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS-8184: Use GitHub runners for tests #4009
Changes from all commits
cb4e956
0468714
c7b953e
98b269a
a840dc7
caf431f
785c1b5
d301fa1
5e564aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
15.4.0 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,18 +7,27 @@ ALPHA_SCHEME = "Tangem Alpha" | |
FIREBASE_TESTERS_GROUP = "testers" | ||
|
||
before_all do |lane, options| | ||
xcode_select("/Applications/Xcode.app") | ||
if options[:xcode_version_override].nil? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Я собирался добавить это в задаче по ci/cd, но в принципе ничего не мешает уже сейчас добавить |
||
xcodes() # Will use the Xcode version from the .xcode-version file | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Официальный экшн, не какое-то поделие https://docs.fastlane.tools/actions/xcodes/ Если нужный Xcode и так стоит - то ничего устанавливаться не будет:
Еще он будет полезен с учетом вот этого breaking change actions/runner-images#10703 - скоро раннеры будут иметь только одну мажорную версию Xcode, а не набор как сейчас:
В образе для раннера этот экшн уже стоит, на self-hosted раннерре его надо будет поставить и один раз запустить, чтобы он сохранил логин-пароль для скачивания xcode https://github.com/XcodesOrg/xcodes?tab=readme-ov-file#install-xcode- |
||
else | ||
xcodes(version: options[:xcode_version_override]) | ||
end | ||
|
||
Dir.chdir("..") do | ||
sh("./bootstrap.sh") | ||
end | ||
|
||
ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "120" | ||
ENV["FASTLANE_XCODEBUILD_SETTINGS_RETRIES"] = "4" | ||
Comment on lines
+20
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Периодически стреляет, лишним не будет |
||
end | ||
|
||
desc """ | ||
A lane that builds and tests the scheme \"Tangem\" using a clean and build application. | ||
Using enviroment: Production | ||
Options: | ||
- xcode_version_override: Xcode version to use, optional (uses https://github.com/XcodesOrg/xcodes under the hood) | ||
""" | ||
lane :test do | ||
lane :test do |options| | ||
run_tests( | ||
workspace: "TangemApp.xcworkspace", | ||
scheme: PRODUCTION_SCHEME, | ||
|
@@ -34,6 +43,7 @@ desc """ | |
- version: app version | ||
- build: optional build number | ||
- changelog: string for description archive | ||
- xcode_version_override: Xcode version to use, optional (uses https://github.com/XcodesOrg/xcodes under the hood) | ||
""" | ||
lane :release do |options| | ||
app_store_connect_api_key(duration: 1200, is_key_content_base64: true) | ||
|
@@ -62,6 +72,7 @@ Options: | |
- version: app version | ||
- build: optional build number | ||
- changelog: string for description archive | ||
- xcode_version_override: Xcode version to use, optional (uses https://github.com/XcodesOrg/xcodes under the hood) | ||
""" | ||
lane :beta do |options| | ||
increment_version_number(version_number: options[:version]) | ||
|
@@ -88,6 +99,7 @@ Options: | |
- version: app version | ||
- build: optional build number | ||
- changelog: string for description archive | ||
- xcode_version_override: Xcode version to use, optional (uses https://github.com/XcodesOrg/xcodes under the hood) | ||
""" | ||
lane :alpha do |options| | ||
increment_version_number(version_number: options[:version]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/XcodesOrg/xcodes/blob/main/XCODE_VERSION.md