Skip to content

Commit

Permalink
IOS-3280 Add lane
Browse files Browse the repository at this point in the history
  • Loading branch information
mgolovko committed Aug 8, 2024
1 parent bf3e803 commit 4d14029
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/automerge-from-actions.yaml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/build_test_ios_16.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test iOS 16 build

on:
pull_request:
workflow_dispatch:

jobs:
main:
name: Build iOS 16 check
runs-on: ${{ vars.RUNNER_PR }}
timeout-minutes: 35

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Prepare deps
uses: ./.github/actions/prepare-deps

- name: Setup Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: '16.0'

- name: Download Middleware
run: make setup-middle-ci
env:
MIDDLEWARE_TOKEN: ${{ secrets.MIDDLEWARE_TOKEN }}

- name: License Checks
uses: ./.github/actions/license-checks

- name: Run unit tests
run: bundle exec fastlane test_build skip_notify:true
env:
SLACK_URL_BUILD_TESTS: ${{ secrets.SLACK_URL_BUILD_TESTS }}
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 900
FASTLANE_XCODE_LIST_TIMEOUT: 900
15 changes: 15 additions & 0 deletions fastlane/FastfileTests
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,20 @@ platform :ios do
show_uncommitted_changes: true
)
end


lane :test_build do |options|
desc "Test build"
build_app(
scheme: ENV["APP_TARGET"],
configuration: options[:release] ? ENV["APP_CONF_RELEASE"] : ENV["APP_CONF_DEVELOP"],
include_symbols: true,
use_system_scm: true,
archive_path: "./build/archive",
output_directory: "./build/result",
xcargs: ENV['BUILD_OPTIONS'],
cloned_source_packages_path: ENV['SPM_DERIVED_DATA']
)
end

end

0 comments on commit 4d14029

Please sign in to comment.