Skip to content

Commit 450cf7c

Browse files
committed
Update GitHub Actions
1 parent cd1735e commit 450cf7c

File tree

5 files changed

+20
-22
lines changed

5 files changed

+20
-22
lines changed

.github/workflows/cron-checks.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
# Runs "At 02:00 every night"
66
- cron: '0 2 * * *'
77

8+
pull_request:
9+
branches:
10+
- 'main'
11+
812
workflow_dispatch:
913

1014
concurrency:
@@ -19,16 +23,19 @@ jobs:
1923
name: Test E2E UI (Debug)
2024
strategy:
2125
matrix:
22-
ios: [16.4]
23-
setup_runtime: [false]
24-
device: ["iPhone SE (3rd generation)", "iPhone 14", "iPhone 14 Pro Max"]
26+
include:
27+
- ios: 16.4
28+
xcode: 14.3.1
29+
os: macos-13
30+
device: "iPhone 14 Pro Max"
31+
setup_runtime: false
2532
fail-fast: false
26-
runs-on: macos-13
33+
runs-on: ${{ matrix.os }}
2734
env:
2835
GITHUB_EVENT: ${{ toJson(github.event) }}
2936
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3037
ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }}
31-
IOS_SIMULATOR_DEVICE: "${{ matrix.device }} (${{ matrix.ios }})"
38+
XCODE_VERSION: ${{ matrix.xcode }}
3239
steps:
3340
- uses: actions/[email protected]
3441
- uses: ./.github/actions/bootstrap
@@ -37,11 +44,11 @@ jobs:
3744
INSTALL_XCPARSE: true
3845
- name: Setup iOS ${{ matrix.ios }} Runtime
3946
if: ${{ matrix.setup_runtime }}
40-
run: sudo xcodes runtimes install 'iOS ${{ matrix.ios }}'
47+
run: xcversion simulators --install='iOS ${{ matrix.ios }}'
4148
- name: Launch Allure TestOps
4249
run: bundle exec fastlane allure_launch cron:true
4350
- name: Run UI Tests (Debug)
44-
run: bundle exec fastlane test_e2e_mock cron:true device:"${{ matrix.device }}" ios:"${{ matrix.ios }}"
51+
run: bundle exec fastlane test_e2e_mock cron:true device:"${{ matrix.device }} (${{ matrix.ios }})"
4552
timeout-minutes: 90
4653
- name: Allure TestOps Upload
4754
if: success() || failure()

.github/workflows/smoke-checks.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
name: Smoke Checks
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
84
pull_request:
95
branches:
106
- '**'
11-
12-
release:
13-
types:
14-
- created
7+
- '!main'
158

169
workflow_dispatch:
1710

Mintfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
nicklockwood/[email protected]
22
3-
RobotsAndPencils/[email protected]

fastlane/Fastfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ github_repo = ENV['GITHUB_REPOSITORY'] || 'GetStream/stream-chat-swiftui'
1515
before_all do
1616
if is_ci
1717
setup_ci
18-
xcodes(version: xcode_version, select_for_current_build_only: true)
1918
ENV['FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT'] = '180'
19+
xcversion(version: xcode_version) unless [:publish_release, :allure_launch].include?(lane)
2020
end
2121
end
2222

@@ -100,19 +100,18 @@ end
100100

101101
desc 'Runs e2e ui tests using mock server in Debug config'
102102
lane :test_e2e_mock do |options|
103-
# next unless is_check_required(sources: sources_matrix[:e2e])
103+
next unless is_check_required(sources: sources_matrix[:e2e])
104104

105105
start_sinatra
106106

107-
device = options[:ios] ? "#{options[:device]} (#{options[:ios]})" : options[:device]
108-
prepare_simulator(device: device) if is_ci
107+
prepare_simulator(device: options[:device]) if is_ci
109108

110109
scan_options = {
111110
project: xcode_project,
112111
scheme: 'StreamChatSwiftUITestsApp',
113112
testplan: 'StreamChatSwiftUITestsApp',
114113
result_bundle: true,
115-
devices: device,
114+
devices: options[:device],
116115
number_of_retries: 3 # TODO: CIS-1737
117116
}
118117

fastlane/Pluginfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
gem 'fastlane-plugin-versioning'
66
gem 'fastlane-plugin-emerge'
77
gem 'fastlane-plugin-sonarcloud_metric_kit'
8-
gem 'fastlane-plugin-stream_actions', '0.3.18'
8+
gem 'fastlane-plugin-stream_actions', '0.3.19'

0 commit comments

Comments
 (0)