-
-
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.
- Loading branch information
Showing
7 changed files
with
413 additions
and
410 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,71 @@ | ||
name: Example Android check | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/android-build-test.yml | ||
- 'android/**' | ||
- 'src/fabric/**' | ||
- '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: | ||
# name: Example Android check | ||
# on: | ||
# pull_request: | ||
# paths: | ||
# - .github/workflows/android-build-test.yml | ||
# - 'android/**' | ||
# - 'src/fabric/**' | ||
# - '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: [paper-example, fabric-example] | ||
fail-fast: false | ||
concurrency: | ||
group: android-${{ matrix.working-directory }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout Git repository | ||
uses: actions/checkout@v4 | ||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# working-directory: [paper-example, fabric-example] | ||
# fail-fast: false | ||
# concurrency: | ||
# group: android-${{ matrix.working-directory }}-${{ github.ref }} | ||
# cancel-in-progress: true | ||
# steps: | ||
# - name: Checkout Git repository | ||
# uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
# - name: Set up JDK 17 | ||
# uses: actions/setup-java@v4 | ||
# with: | ||
# distribution: 'zulu' | ||
# java-version: '17' | ||
|
||
- 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: 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: 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('{0}/yarn.lock', matrix.working-directory)) }} | ||
restore-keys: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}- | ||
# - 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('{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: Install app node_modules | ||
# working-directory: apps/${{ matrix.working-directory }} | ||
# run: yarn install --frozen-lockfile | ||
|
||
- name: Get build cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{matrix.working-directory}}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-${{matrix.working-directory}}- | ||
# - name: Get build cache | ||
# uses: actions/cache@v4 | ||
# with: | ||
# path: | | ||
# ~/.gradle/caches | ||
# ~/.gradle/wrapper | ||
# 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: apps/${{ matrix.working-directory }}/android | ||
run: ./gradlew assembleDebug --build-cache --console=plain -PreactNativeArchitectures=arm64-v8a | ||
# - name: Build app | ||
# 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
name: Test consistency between Paper & Fabric | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- src/fabric/** | ||
- android/src/paper/java/com/facebook/react/viewmanagers/** | ||
- android/src/paper/java/com/horcrux/svg/** | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: check-archs-consistency-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'yarn' | ||
- name: Install node dependencies | ||
run: yarn | ||
- name: Check Android Paper & Fabric generated interfaces consistency | ||
run: yarn check-archs-consistency | ||
# name: Test consistency between Paper & Fabric | ||
# on: | ||
# pull_request: | ||
# branches: | ||
# - main | ||
# paths: | ||
# - src/fabric/** | ||
# - android/src/paper/java/com/facebook/react/viewmanagers/** | ||
# - android/src/paper/java/com/horcrux/svg/** | ||
# jobs: | ||
# check: | ||
# runs-on: ubuntu-latest | ||
# concurrency: | ||
# group: check-archs-consistency-${{ github.ref }} | ||
# cancel-in-progress: true | ||
# steps: | ||
# - name: checkout | ||
# uses: actions/checkout@v4 | ||
# - name: Use Node.js 18 | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: 18 | ||
# cache: 'yarn' | ||
# - name: Install node dependencies | ||
# run: yarn | ||
# - name: Check Android Paper & Fabric generated interfaces consistency | ||
# run: yarn check-archs-consistency |
Oops, something went wrong.