Skip to content

Commit

Permalink
IOS-8184: Use GitHub runners for tests (#4009)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Fedorov <[email protected]>
  • Loading branch information
m3g0byt3 authored Oct 8, 2024
1 parent 79e5ecd commit 7949988
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ concurrency:
jobs:
test:
name: Test
runs-on: self-hosted
runs-on: macos-14
if: github.event.pull_request.draft == false
steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .xcode-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
15.4.0
16 changes: 14 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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?
xcodes() # Will use the Xcode version from the .xcode-version file
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"
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,
Expand All @@ -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)
Expand Down Expand Up @@ -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])
Expand All @@ -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])
Expand Down

0 comments on commit 7949988

Please sign in to comment.