Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/actions/setup-react-native/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Setup React Native
description: Set up a specific version of React Native
inputs:
version:
description: The React Native version to set up
required: true
runs:
using: composite
steps:
- name: Set up react-native@${{ inputs.version }}
run: |
git apply scripts/disable-safe-area-context.patch
git apply scripts/android-nightly.patch
rm example/ios/Podfile.lock
rm example/macos/Podfile.lock
npm run set-react-version -- ${{ inputs.version }}
shell: bash
33 changes: 16 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ jobs:
echo "::add-matcher::.github/swiftlint.json"
swiftlint
echo "::remove-matcher owner=swiftlint::"
- name: Smoke test `set-react-version`
run: |
npm run set-react-version -- 0.66
- name: Smoke test `setup-react-native` action
uses: ./.github/actions/setup-react-native
with:
version: nightly
timeout-minutes: 60
ios:
name: "iOS"
Expand All @@ -147,9 +148,9 @@ jobs:
xcode-developer-dir: ${{ env.XCODE_DEVELOPER_DIR }}
- name: Set up react-native@nightly
if: ${{ github.event_name == 'schedule' }}
run: |
npm run set-react-version -- nightly
rm example/ios/Podfile.lock
uses: ./.github/actions/setup-react-native
with:
version: nightly
- name: Install npm dependencies
uses: ./.github/actions/yarn
with:
Expand Down Expand Up @@ -238,11 +239,9 @@ jobs:
java-version: ${{ github.event_name == 'schedule' && '17' || '11' }}
- name: Set up react-native@nightly
if: ${{ github.event_name == 'schedule' }}
run: |
git apply scripts/disable-safe-area-context.patch
git apply scripts/android-nightly.patch
npm run set-react-version -- nightly
shell: bash
uses: ./.github/actions/setup-react-native
with:
version: nightly
- name: Install npm dependencies
uses: ./.github/actions/yarn
with:
Expand Down Expand Up @@ -314,9 +313,9 @@ jobs:
xcode-developer-dir: ${{ env.XCODE_DEVELOPER_DIR }}
- name: Set up react-native@canary
if: ${{ github.event_name == 'schedule' }}
run: |
npm run set-react-version -- canary-macos
rm example/macos/Podfile.lock
uses: ./.github/actions/setup-react-native
with:
version: canary-macos
- name: Install npm dependencies
uses: ./.github/actions/yarn
with:
Expand Down Expand Up @@ -415,9 +414,9 @@ jobs:
platform: windows
- name: Set up react-native@canary
if: ${{ github.event_name == 'schedule' }}
run: |
npm run set-react-version -- canary-windows
shell: bash
uses: ./.github/actions/setup-react-native
with:
version: canary-windows
- name: Install npm dependencies
uses: ./.github/actions/yarn
with:
Expand Down
4 changes: 2 additions & 2 deletions scripts/android-nightly.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties
index 5083229..37aef8d 100644
index 4e86b92..37aef8d 100644
--- a/example/android/gradle/wrapper/gradle-wrapper.properties
+++ b/example/android/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
Expand Down