Skip to content

Commit da2726d

Browse files
committed
chore: update workflows
1 parent 4da17eb commit da2726d

6 files changed

Lines changed: 30 additions & 10 deletions

File tree

actions/android/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ runs:
146146
if: always() && inputs.uploadVisualTestArtifacts == 'true'
147147
uses: actions/upload-artifact@v4
148148
with:
149-
name: visual-test-diffs-${{ inputs.runner }}
149+
name: visual-test-diffs-android
150150
path: |
151151
${{ inputs.projectRoot }}/**/__image_snapshots__/**/*-diff.png
152152
${{ inputs.projectRoot }}/**/__image_snapshots__/**/*-actual.png
@@ -155,6 +155,6 @@ runs:
155155
if: always()
156156
uses: actions/upload-artifact@v4
157157
with:
158-
name: harness-crash-reports-${{ inputs.runner }}
158+
name: harness-crash-reports-android
159159
path: ${{ inputs.projectRoot }}/.harness/crash-reports/**/*
160160
if-no-files-found: ignore

actions/ios/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ runs:
7373
if: always() && inputs.uploadVisualTestArtifacts == 'true'
7474
uses: actions/upload-artifact@v4
7575
with:
76-
name: visual-test-diffs-${{ inputs.runner }}
76+
name: visual-test-diffs-ios
7777
path: |
7878
${{ inputs.projectRoot }}/**/__image_snapshots__/**/*-diff.png
7979
${{ inputs.projectRoot }}/**/__image_snapshots__/**/*-actual.png
@@ -82,6 +82,6 @@ runs:
8282
if: always()
8383
uses: actions/upload-artifact@v4
8484
with:
85-
name: harness-crash-reports-${{ inputs.runner }}
85+
name: harness-crash-reports-ios
8686
path: ${{ inputs.projectRoot }}/.harness/crash-reports/**/*
8787
if-no-files-found: ignore

actions/web/action.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ inputs:
1414
required: false
1515
type: boolean
1616
default: 'true'
17+
harnessArgs:
18+
description: Additional arguments to pass to the Harness CLI
19+
required: false
20+
type: string
21+
default: ''
1722
runs:
1823
using: 'composite'
1924
steps:
@@ -51,12 +56,12 @@ runs:
5156
- name: Run E2E tests
5257
shell: bash
5358
working-directory: ${{ inputs.projectRoot }}
54-
run: ${{ steps.detect-pm.outputs.runner }}react-native-harness --harnessRunner ${{ inputs.runner }}
59+
run: ${{ steps.detect-pm.outputs.runner }}react-native-harness --harnessRunner ${{ inputs.runner }} ${{ inputs.harnessArgs }}
5560
- name: Upload visual test artifacts
5661
if: always() && inputs.uploadVisualTestArtifacts == 'true'
5762
uses: actions/upload-artifact@v4
5863
with:
59-
name: visual-test-diffs-${{ inputs.runner }}
64+
name: visual-test-diffs-chromium
6065
path: |
6166
${{ inputs.projectRoot }}/**/__image_snapshots__/**/*-diff.png
6267
${{ inputs.projectRoot }}/**/__image_snapshots__/**/*-actual.png
@@ -65,6 +70,6 @@ runs:
6570
if: always()
6671
uses: actions/upload-artifact@v4
6772
with:
68-
name: harness-crash-reports-${{ inputs.runner }}
73+
name: harness-crash-reports-web
6974
path: ${{ inputs.projectRoot }}/.harness/crash-reports/**/*
7075
if-no-files-found: ignore

packages/github-action/src/android/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ inputs:
1717
required: false
1818
type: boolean
1919
default: 'true'
20+
harnessArgs:
21+
description: Additional arguments to pass to the Harness CLI
22+
required: false
23+
type: string
24+
default: ''
2025
runs:
2126
using: 'composite'
2227
steps:
@@ -136,7 +141,7 @@ runs:
136141
script: |
137142
echo $(pwd)
138143
adb install -r ${{ inputs.app }}
139-
${{ steps.detect-pm.outputs.runner }}react-native-harness --harnessRunner ${{ inputs.runner }}
144+
${{ steps.detect-pm.outputs.runner }}react-native-harness --harnessRunner ${{ inputs.runner }} ${{ inputs.harnessArgs }}
140145
- name: Upload visual test artifacts
141146
if: always() && inputs.uploadVisualTestArtifacts == 'true'
142147
uses: actions/upload-artifact@v4

packages/github-action/src/ios/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ inputs:
1717
required: false
1818
type: boolean
1919
default: 'true'
20+
harnessArgs:
21+
description: Additional arguments to pass to the Harness CLI
22+
required: false
23+
type: string
24+
default: ''
2025
runs:
2126
using: 'composite'
2227
steps:
@@ -63,7 +68,7 @@ runs:
6368
- name: Run E2E tests
6469
shell: bash
6570
working-directory: ${{ inputs.projectRoot }}
66-
run: ${{ steps.detect-pm.outputs.runner }}react-native-harness --harnessRunner ${{ inputs.runner }}
71+
run: ${{ steps.detect-pm.outputs.runner }}react-native-harness --harnessRunner ${{ inputs.runner }} ${{ inputs.harnessArgs }}
6772
- name: Upload visual test artifacts
6873
if: always() && inputs.uploadVisualTestArtifacts == 'true'
6974
uses: actions/upload-artifact@v4

packages/github-action/src/web/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ inputs:
1414
required: false
1515
type: boolean
1616
default: 'true'
17+
harnessArgs:
18+
description: Additional arguments to pass to the Harness CLI
19+
required: false
20+
type: string
21+
default: ''
1722
runs:
1823
using: 'composite'
1924
steps:
@@ -51,7 +56,7 @@ runs:
5156
- name: Run E2E tests
5257
shell: bash
5358
working-directory: ${{ inputs.projectRoot }}
54-
run: ${{ steps.detect-pm.outputs.runner }}react-native-harness --harnessRunner ${{ inputs.runner }}
59+
run: ${{ steps.detect-pm.outputs.runner }}react-native-harness --harnessRunner ${{ inputs.runner }} ${{ inputs.harnessArgs }}
5560
- name: Upload visual test artifacts
5661
if: always() && inputs.uploadVisualTestArtifacts == 'true'
5762
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)