-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into @bohdanprog/handle-web-events
- Loading branch information
Showing
607 changed files
with
20,890 additions
and
10,606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,71 @@ | ||
name: Test Android build | ||
name: Example Android check | ||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/android-build-test.yml' | ||
- .github/workflows/android-build-test.yml | ||
- 'android/**' | ||
- 'src/fabric/**' | ||
- 'package.json' | ||
- 'example/android/**' | ||
- 'example/package.json' | ||
- 'fabric-example/android/**' | ||
- 'fabric-example/package.json' | ||
- 'apps/paper-example/android/**' | ||
- 'apps/paper-example/package.json' | ||
- 'apps/fabric-example/android/**' | ||
- 'apps/fabric-example/package.json' | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
working-directory: [example, fabric-example] | ||
working-directory: [paper-example, fabric-example] | ||
fail-fast: false | ||
concurrency: | ||
group: android-${{ matrix.working-directory }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
- name: Checkout Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
|
||
- name: Accept licenses | ||
run: /bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null" | ||
|
||
- name: Restore svg node_modules from cache | ||
uses: actions/cache@v2 | ||
id: cache-node-modules-svg | ||
- name: Get react-native-svg node_modules cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
node_modules | ||
path: node_modules | ||
key: ${{ runner.os }}-node-modules-svg-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-node-modules-svg | ||
- name: Install svg node_modules | ||
restore-keys: ${{ runner.os }}-node-modules-svg- | ||
|
||
- name: Install react-native-svg node_modules | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Restore app node_modules from cache | ||
uses: actions/cache@v2 | ||
id: cache-node-modules-app | ||
- name: Get app node_modules cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
${{ matrix.working-directory }}/node_modules | ||
path: apps/${{ matrix.working-directory }}/node_modules | ||
key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/yarn.lock', matrix.working-directory)) }} | ||
restore-keys: | | ||
${{ runner.os }}-node-modules-${{ matrix.working-directory }}- | ||
restore-keys: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}- | ||
|
||
- name: Install app node_modules | ||
working-directory: ${{ matrix.working-directory }} | ||
working-directory: apps/${{ matrix.working-directory }} | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Restore build from cache | ||
uses: actions/cache@v3 | ||
- name: Get build cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
android/build | ||
android/.cxx | ||
${{ matrix.working-directory }}/android/build | ||
${{ matrix.working-directory }}/android/.cxx | ||
${{ matrix.working-directory }}/android/.gradle | ||
${{ matrix.working-directory }}/android/app/build | ||
${{ matrix.working-directory }}/android/app/.cxx | ||
${{ matrix.working-directory }}/node_modules/react-native/ReactAndroid/build | ||
${{ matrix.working-directory }}/node_modules/react-native/ReactAndroid/hermes-engine/build | ||
${{ matrix.working-directory }}/node_modules/react-native/ReactAndroid/hermes-engine/.cxx | ||
key: ${{ runner.os }}-build5-${{ matrix.working-directory }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'android/build.gradle', format('{0}/node_modules/react-native/sdks/.hermesversion', matrix.working-directory)) }} | ||
key: ${{ runner.os }}-gradle-${{matrix.working-directory}}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-${{matrix.working-directory}}- | ||
- name: Build app | ||
working-directory: ${{ matrix.working-directory }}/android | ||
working-directory: apps/${{ matrix.working-directory }}/android | ||
run: ./gradlew assembleDebug --build-cache --console=plain -PreactNativeArchitectures=arm64-v8a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: E2E iOS | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/ios-e2e.yml | ||
- apps/common/example/** | ||
- apple/** | ||
- src/** | ||
- e2e/** | ||
- package.json | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: macos-14 | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
working-directory: [paper-example] | ||
fail-fast: false | ||
env: | ||
DEVICE: iPhone 16 Pro | ||
steps: | ||
- name: Checkout Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use latest stable Xcode | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
|
||
- name: Get react-native-svg node_modules cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-node-modules-svg-${{ hashFiles('yarn.lock') }} | ||
restore-keys: ${{ runner.os }}-node-modules-svg- | ||
|
||
- name: Install react-native-svg node_modules | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Get app node_modules cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: apps/${{ matrix.working-directory }}/node_modules | ||
key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/yarn.lock', matrix.working-directory)) }} | ||
restore-keys: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}- | ||
|
||
- name: Install app node_modules | ||
working-directory: apps/${{ matrix.working-directory }} | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Get Pods cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: apps/${{ matrix.working-directory }}/ios/Pods | ||
key: ${{ runner.os }}-pods-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/ios/Podfile.lock', matrix.working-directory)) }} | ||
restore-keys: | | ||
${{ runner.os }}-pods-${{ matrix.working-directory }}- | ||
- name: Install Pods | ||
working-directory: apps/${{ matrix.working-directory }}/ios | ||
run: bundle install && bundle exec pod install | ||
|
||
- name: Get build artifacts cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/Library/Developer/Xcode/DerivedData | ||
key: ${{ runner.os }}-ios-derived-data-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/ios/Podfile.lock', matrix.working-directory)) }} | ||
restore-keys: | | ||
${{ runner.os }}-ios-derived-data-${{ matrix.working-directory }}- | ||
- name: Start Metro server | ||
working-directory: apps/${{ matrix.working-directory }} | ||
run: E2E=true yarn start &> output.log & | ||
|
||
- name: Build app | ||
working-directory: apps/${{ matrix.working-directory }} | ||
run: E2E=true npx react-native run-ios --simulator="${{ env.DEVICE }}" --mode Debug --verbose | ||
|
||
- name: Run e2e Tests | ||
run: E2E=true yarn e2e | ||
|
||
- name: Upload test report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: report | ||
path: | | ||
report.html | ||
jest-html-reporters-attach/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.