-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22072bf
commit a418804
Showing
5 changed files
with
91 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,10 @@ inputs: | |
required: false | ||
default: "." | ||
description: The directory from which metro should be started | ||
architecture: | ||
required: false | ||
default: "NewArch" | ||
description: The react native architecture to test | ||
|
||
runs: | ||
using: composite | ||
|
@@ -52,6 +56,7 @@ runs: | |
if: ${{ inputs.flavor == 'debug' }} | ||
run: ./packages/react-native-codegen/scripts/oss/build.sh | ||
- name: Run e2e tests | ||
id: run-tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 24 | ||
|
@@ -69,16 +74,16 @@ runs: | |
NORM_APP_ID=$(echo "${{ inputs.app-id }}" | tr '.' '-') | ||
echo "app-id=$NORM_APP_ID" >> $GITHUB_OUTPUT | ||
- name: Store tests result | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4.3.4 | ||
if: always() | ||
with: | ||
name: e2e_android_${{ steps.normalize-app-id.outputs.app-id }}_report_${{ inputs.jsengine }}_${{ inputs.flavor }} | ||
name: e2e_android_${{ steps.normalize-app-id.outputs.app-id }}_report_${{ inputs.jsengine }}_${{ inputs.flavor }}_${{ inputs.architecture }} | ||
path: | | ||
report.xml | ||
screen.mp4 | ||
- name: Store Logs | ||
if: failure() && steps.run-tests.outcome == 'failure' | ||
if: steps.run-tests.outcome == 'failure' | ||
uses: actions/[email protected] | ||
with: | ||
name: maestro-logs-android-${{ steps.normalize-app-id.outputs.app-id }}-${{ inputs.jsengine }}-${{ inputs.flavor }} | ||
name: maestro-logs-android-${{ steps.normalize-app-id.outputs.app-id }}-${{ inputs.jsengine }}-${{ inputs.flavor }}-${{ inputs.architecture }} | ||
path: /tmp/MaestroLogs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,10 @@ inputs: | |
required: false | ||
default: "." | ||
description: The directory from which metro should be started | ||
architecture: | ||
required: false | ||
default: "NewArch" | ||
description: The react native architecture to test | ||
|
||
runs: | ||
using: composite | ||
|
@@ -86,8 +90,6 @@ runs: | |
CURR_ATTEMPT=$((CURR_ATTEMPT+1)) | ||
echo "Attempt number $CURR_ATTEMPT" | ||
echo "Start video record using pid: video_record_${{ inputs.jsengine }}_$CURR_ATTEMPT.pid" | ||
xcrun simctl io booted recordVideo video_record_$CURR_ATTEMPT.mov & echo $! > video_record_${{ inputs.jsengine }}_$CURR_ATTEMPT.pid | ||
|
@@ -105,7 +107,7 @@ runs: | |
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: e2e_ios_${{ inputs.app-id }}_report_${{ inputs.jsengine }}_${{ inputs.flavor }} | ||
name: e2e_ios_${{ inputs.app-id }}_report_${{ inputs.jsengine }}_${{ inputs.flavor }}_${{ inputs.architecture }} | ||
path: | | ||
video_record_1.mov | ||
video_record_2.mov | ||
|
@@ -117,5 +119,5 @@ runs: | |
if: failure() && steps.run-tests.outcome == 'failure' | ||
uses: actions/[email protected] | ||
with: | ||
name: maestro-logs-${{ inputs.app-id }}-${{ inputs.jsengine }}-${{ inputs.flavor }} | ||
name: maestro-logs-${{ inputs.app-id }}-${{ inputs.jsengine }}-${{ inputs.flavor }}-${{ inputs.architecture }} | ||
path: /tmp/MaestroLogs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters