@@ -128,9 +128,10 @@ jobs:
128
128
echo "::add-matcher::.github/swiftlint.json"
129
129
swiftlint
130
130
echo "::remove-matcher owner=swiftlint::"
131
- - name : Smoke test `set-react-version`
132
- run : |
133
- npm run set-react-version -- 0.66
131
+ - name : Smoke test `setup-react-native` action
132
+ uses : ./.github/actions/setup-react-native
133
+ with :
134
+ version : nightly
134
135
timeout-minutes : 60
135
136
ios :
136
137
name : " iOS"
@@ -147,9 +148,9 @@ jobs:
147
148
xcode-developer-dir : ${{ env.XCODE_DEVELOPER_DIR }}
148
149
- name : Set up react-native@nightly
149
150
if : ${{ github.event_name == 'schedule' }}
150
- run : |
151
- npm run set-react-version -- nightly
152
- rm example/ios/Podfile.lock
151
+ uses : ./.github/actions/setup-react-native
152
+ with :
153
+ version : nightly
153
154
- name : Install npm dependencies
154
155
uses : ./.github/actions/yarn
155
156
with :
@@ -238,11 +239,9 @@ jobs:
238
239
java-version : ${{ github.event_name == 'schedule' && '17' || '11' }}
239
240
- name : Set up react-native@nightly
240
241
if : ${{ github.event_name == 'schedule' }}
241
- run : |
242
- git apply scripts/disable-safe-area-context.patch
243
- git apply scripts/android-nightly.patch
244
- npm run set-react-version -- nightly
245
- shell : bash
242
+ uses : ./.github/actions/setup-react-native
243
+ with :
244
+ version : nightly
246
245
- name : Install npm dependencies
247
246
uses : ./.github/actions/yarn
248
247
with :
@@ -314,9 +313,9 @@ jobs:
314
313
xcode-developer-dir : ${{ env.XCODE_DEVELOPER_DIR }}
315
314
- name : Set up react-native@canary
316
315
if : ${{ github.event_name == 'schedule' }}
317
- run : |
318
- npm run set-react-version -- canary-macos
319
- rm example/ macos/Podfile.lock
316
+ uses : ./.github/actions/setup-react-native
317
+ with :
318
+ version : canary- macos
320
319
- name : Install npm dependencies
321
320
uses : ./.github/actions/yarn
322
321
with :
@@ -415,9 +414,9 @@ jobs:
415
414
platform : windows
416
415
- name : Set up react-native@canary
417
416
if : ${{ github.event_name == 'schedule' }}
418
- run : |
419
- npm run set-react-version -- canary-windows
420
- shell : bash
417
+ uses : ./.github/actions/setup-react-native
418
+ with :
419
+ version : canary-windows
421
420
- name : Install npm dependencies
422
421
uses : ./.github/actions/yarn
423
422
with :
0 commit comments