File tree Expand file tree Collapse file tree 1 file changed +34
-3
lines changed
Expand file tree Collapse file tree 1 file changed +34
-3
lines changed Original file line number Diff line number Diff line change 2121 test :
2222 strategy :
2323 matrix :
24- runner : [ubuntu-latest, windows-latest, macos-latest]
25- name : Test (${{ matrix.runner }})
24+ runner :
25+ - ubuntu-latest
26+ - windows-latest
27+ - macos-latest
28+ variant :
29+ - unit-tests
30+ - android-tests
31+ - ios-tests
32+ exclude :
33+ - runner : ubuntu-latest
34+ variant : ios-tests
35+ - runner : windows-latest
36+ variant : ios-tests
37+
38+ name : Test (${{ matrix.variant }} on ${{ matrix.runner }})
2639 runs-on : ${{ matrix.runner }}
2740 steps :
2841 - uses : actions/checkout@v4
4053 - run : sdkmanager --install "ndk;27.1.12297006"
4154 - run : npm ci
4255 - run : npm run bootstrap
43- - run : npm test
56+ # Unit tests
57+ - if : matrix.variant == 'unit-tests'
58+ run : npm test
59+ # Integration tests (iOS)
60+ - if : matrix.variant == 'ios-tests'
61+ run : npm run pod-install
62+ working-directory : apps/test-app
63+ - if : matrix.variant == 'ios-tests'
64+ run : npm run test:ios
65+ working-directory : apps/test-app
66+ # Integration tests (Android)
67+ - if : matrix.variant == 'android-tests'
68+ run : echo "REACT_NATIVE_OVERRIDE_HERMES_DIR=`npx react-native-node-api vendor-hermes --silent`" >> $GITHUB_ENV
69+ working-directory : apps/test-app
70+ - if : matrix.variant == 'android-tests'
71+ run : adb reverse tcp:8090 tcp:8090
72+ - if : matrix.variant == 'android-tests'
73+ run : npm run test:android
74+ working-directory : apps/test-app
You can’t perform that action at this time.
0 commit comments