Skip to content

Commit 95b21bc

Browse files
committed
run only the react native tests
1 parent e9c7f6e commit 95b21bc

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Fast RN-Only Verification Tests
2+
3+
on: workflow_call
4+
5+
jobs:
6+
prebuild-macos:
7+
uses: ./.github/workflows/callable-prebuild-amplify-js.yml
8+
with:
9+
runs_on: macos-latest
10+
prebuild-samples-staging:
11+
secrets: inherit
12+
uses: ./.github/workflows/callable-prebuild-samples-staging.yml
13+
rn-detox-tests:
14+
needs:
15+
- prebuild-macos
16+
- prebuild-samples-staging
17+
name: React Native Detox Tests Only
18+
runs-on: macos-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
22+
with:
23+
path: amplify-js
24+
- name: Read detox config
25+
id: load_config
26+
run: |
27+
echo "DETOX_INTEG_CONFIG=$(cat .github/integ-config/detox-integ-all.yml | yq -o=json | jq -c .)" >> $GITHUB_OUTPUT
28+
working-directory: ./amplify-js
29+
- name: Run detox tests
30+
strategy:
31+
matrix:
32+
integ-config: ${{ fromJson(steps.load_config.outputs.DETOX_INTEG_CONFIG) }}
33+
fail-fast: false
34+
secrets: inherit
35+
uses: ./.github/workflows/callable-e2e-test-detox.yml
36+
with:
37+
test_name: ${{ matrix.integ-config.test_name }}
38+
working_directory: ${{ matrix.integ-config.working_directory }}
39+
timeout_minutes: ${{ matrix.integ-config.timeout_minutes || 45 }}

.github/workflows/push-lts-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ on:
1414
jobs:
1515
e2e:
1616
secrets: inherit
17-
uses: ./.github/workflows/callable-release-verification.yml
17+
uses: ./.github/workflows/callable-fast-rn-verification.yml

0 commit comments

Comments
 (0)