Skip to content

Commit 8c18be6

Browse files
committed
Merge branch 'main' into bugfix/ios-pointer-hover-mounting
2 parents 284c825 + f9855ad commit 8c18be6

328 files changed

Lines changed: 5380 additions & 6421 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/actions/maestro-ios/action.yml‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,34 @@ inputs:
2626
required: false
2727
default: ''
2828
description: Maestro device OS name, such as iOS-26-2
29+
test-state-path:
30+
required: false
31+
default: ''
32+
description: The path used to persist per-flow test results between retries
33+
exclude-tags:
34+
required: false
35+
default: ''
36+
description: Comma-separated flow tags to exclude from the test run
2937

3038
runs:
3139
using: composite
40+
# Expects Node.js to be set up by the calling job.
3241
steps:
42+
# Booting takes a couple of minutes; it finishes while the next steps run.
43+
- name: Boot simulator
44+
shell: bash
45+
run: |
46+
node .github/workflow-scripts/maestro-ios.js boot \
47+
"${{ inputs.device-model }}" \
48+
"${{ inputs.device-os }}"
3349
- name: Installing Maestro
3450
shell: bash
3551
run: export MAESTRO_VERSION=2.6.1; curl -Ls "https://get.maestro.mobile.dev" | bash
36-
- name: Installing Maestro dependencies
37-
shell: bash
38-
run: |
39-
brew tap facebook/fb
40-
brew install facebook/fb/idb-companion
4152
- name: Set up JDK 17
4253
uses: actions/setup-java@v5
4354
with:
4455
java-version: '17'
4556
distribution: 'zulu'
46-
- name: Setup node.js
47-
uses: ./.github/actions/setup-node
4857
- name: Run yarn install
4958
uses: ./.github/actions/yarn-install
5059
- name: Start Metro in Debug
@@ -73,24 +82,15 @@ runs:
7382
"${{ inputs.flavor }}" \
7483
"${{ inputs.working-directory }}" \
7584
"${{ inputs.device-model }}" \
76-
"${{ inputs.device-os }}"
77-
- name: Store video record
78-
if: always()
79-
uses: ./.github/actions/upload-artifact
80-
with:
81-
name: e2e_ios_${{ inputs.app-id }}_report_${{ inputs.flavor }}_NewArch
82-
overwrite: true
83-
path: |
84-
video_record_1.mov
85-
video_record_2.mov
86-
video_record_3.mov
87-
video_record_4.mov
88-
video_record_5.mov
89-
report.xml
85+
"${{ inputs.device-os }}" \
86+
"${{ inputs.test-state-path }}" \
87+
"${{ inputs.exclude-tags }}"
9088
- name: Store Logs
91-
if: failure() && steps.run-tests.outcome == 'failure'
89+
if: always()
9290
uses: ./.github/actions/upload-artifact
9391
with:
9492
name: maestro-logs-${{ inputs.app-id }}-${{ inputs.flavor }}-NewArch
9593
overwrite: true
94+
if-no-files-found: ignore
95+
# Only failed runs leave their report, debug output and recording here
9696
path: /tmp/MaestroLogs

‎.github/workflow-scripts/__tests__/maestro-android-test.js‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,16 @@ describe('Maestro Android runner', () => {
4747
});
4848

4949
it('excludes flows with matching tags', () => {
50-
const releaseOnlyFlow = path.join(
51-
temporaryDirectory,
52-
'android-release-only.yml',
53-
);
50+
const releaseOnlyFlow = path.join(temporaryDirectory, 'release-only.yml');
5451
const regularFlow = path.join(temporaryDirectory, 'regular.yml');
5552
fs.writeFileSync(
5653
releaseOnlyFlow,
57-
'appId: x\ntags:\n - android-release-only\n---\n- launchApp\n',
54+
'appId: x\ntags:\n - release-only\n---\n- launchApp\n',
5855
);
5956
fs.writeFileSync(regularFlow, 'appId: x\n---\n- launchApp\n');
6057

6158
expect(
62-
filterFlowsByTags(
63-
[releaseOnlyFlow, regularFlow],
64-
['android-release-only'],
65-
),
59+
filterFlowsByTags([releaseOnlyFlow, regularFlow], ['release-only']),
6660
).toEqual([regularFlow]);
6761
});
6862

0 commit comments

Comments
 (0)