Skip to content
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

chore: upgrade pipelines #1043

Closed
wants to merge 15 commits into from
14 changes: 9 additions & 5 deletions .github/actions/sdk-tests/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Run SDK tests'
description: 'Test the SDK using SPM'
name: "Run SDK tests"
description: "Test the SDK using SPM"
inputs:
ssh-private-key:
description: SSH private key
Expand All @@ -22,7 +22,7 @@ inputs:
fastlane-test-lane:
description: The fastlane test lane to run
required: false
default: test_sdk
default: test_sdk
match-keychain-name:
description: Match keychain name
required: true
Expand All @@ -45,7 +45,11 @@ runs:
- name: Select Xcode Version
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
with:
xcode-version: '15.4'
xcode-version: 15.4
- name: Install xcresult
shell: bash
run: |
brew install xcresult
- name: Install SSH key
uses: shimataro/ssh-key-action@d4fffb50872869abe2d9a9098a6d9c5aa7d16be4 #v2.7.0
with:
Expand All @@ -55,7 +59,7 @@ runs:
- uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
with:
ssh-private-key: ${{ inputs.ssh-private-key }}
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: "3.2"
bundler-cache: true
Expand Down
25 changes: 12 additions & 13 deletions .github/workflows/build-test-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
max-parallel: 3
matrix:
package-swift:
- { name: 'nol-pay', file: 'Package.NolPay.swift' }
- { name: 'klarna', file: Package.Klarna.swift }
- { name: '3DS', file: Package.3DS.swift }
- { name: 'stripe', file: Package.Stripe.swift }
- { name: "nol-pay", file: "Package.NolPay.swift" }
- { name: "klarna", file: Package.Klarna.swift }
- { name: "3DS", file: Package.3DS.swift }
- { name: "stripe", file: Package.Stripe.swift }
steps:
- name: Cancel previous jobs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1
Expand Down Expand Up @@ -97,7 +97,6 @@ jobs:
match-keychain-password: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
fastlane-test-lane: test_debug_app


spm-build:
needs: unit-tests-debug-app
runs-on: macos-14-large
Expand All @@ -115,7 +114,7 @@ jobs:
- name: Select Xcode Version
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
with:
xcode-version: '15.4'
xcode-version: "16.0"
- name: Install SSH key
uses: shimataro/ssh-key-action@d4fffb50872869abe2d9a9098a6d9c5aa7d16be4 #v2.7.0
with:
Expand All @@ -125,7 +124,7 @@ jobs:
- uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0
- uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0
with:
ruby-version: "3.2"
bundler-cache: true
Expand Down Expand Up @@ -162,10 +161,10 @@ jobs:
base-branch: ${{ github.base_ref }}
pull-request-sha: ${{ github.event.pull_request.head.sha }}
coverage-file-names: sonar-coverage-sdk.xml,sonar-coverage-3DS.xml,sonar-coverage-nol-pay.xml,sonar-coverage-klarna.xml,sonar-coverage-stripe.xml

critical-ui-tests:
if: ${{ !startsWith(github.ref_name, 'release/') }}
needs:
needs:
- unit-tests-sdk
- unit-tests-debug-app
runs-on: macos-13-large
Expand All @@ -180,7 +179,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.ref }}
- uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0
- uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0
with:
ruby-version: "3.2"
bundler-cache: true
Expand All @@ -201,8 +200,8 @@ jobs:
bundle exec fastlane build_cocoapods
- name: Clone and launch Browserstack tests via Appium 🧪
run: |
git clone -b 'develop' https://project_41483872_bot:[email protected]/primer-io/acceptance/mobile/mobile-appium-tests.git
git show --summary
git clone -b 'develop' https://project_41483872_bot:[email protected]/primer-io/acceptance/mobile/mobile-appium-tests.git
git show --summary
env:
GITLAB_TEMP_PATH: ${{ secrets.GITLAB_APPIUM_PULL_KEY }}
- name: List simulators
Expand Down Expand Up @@ -235,7 +234,7 @@ jobs:
id: appetize-upload
uses: ./.github/actions/appetize-build
with:
build_type: 'preview'
build_type: "preview"
github-token: ${{ secrets.GITHUB_TOKEN }}
ssh-private-key: ${{ secrets.SSH_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }}
Expand Down
20 changes: 15 additions & 5 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ platform :ios do

run_tests(workspace: app_workspace,
scheme: "PrimerSDKTests",
destination: "platform=iOS Simulator,name=iPhone 14 Pro",
destination: "platform=iOS Simulator,name=iPhone 15",
xcargs: "EXCLUDED_ARCHS[sdk=iphonesimulator*]=arm64",
skip_package_dependencies_resolution: true)
end
Expand Down Expand Up @@ -123,10 +123,15 @@ platform :ios do
package_path: ".",
scheme: "PrimerSDKTests",
sdk: "iphonesimulator#{sim_version}",
destination: "OS=#{sim_version},name=iPhone 14 Pro",
destination: "OS=#{sim_version},name=iPhone 15",
result_bundle: true,
code_coverage: true,
output_directory: Dir.pwd + "/test_output"
output_directory: Dir.pwd + "/test_output",
xcargs: {
"ENABLE_TESTABILITY" => "YES"
},
xcodebuild_formatter: "xcresult",
result_bundle_path: Dir.pwd + "/test_output/PrimerSDKTests.xcresult"
)
end

Expand All @@ -147,10 +152,15 @@ platform :ios do
scheme: app_scheme,
configuration: "Debug",
sdk: "iphonesimulator#{sim_version}",
destination: "OS=#{sim_version},name=iPhone 14 Pro",
destination: "OS=#{sim_version},name=iPhone 15",
result_bundle: true,
code_coverage: true,
output_directory: Dir.pwd + "/test_output"
output_directory: Dir.pwd + "/test_output",
xcargs: {
"ENABLE_TESTABILITY" => "YES"
},
xcodebuild_formatter: "xcresult",
result_bundle_path: Dir.pwd + "/test_output/PrimerSDKTests.xcresult"
)
end

Expand Down
Loading