-
Notifications
You must be signed in to change notification settings - Fork 65
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 @tomekzaw/hermes-ios
- Loading branch information
Showing
203 changed files
with
22,323 additions
and
47,741 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,2 +1,17 @@ | ||
**/node_modules/* | ||
parser/out.js | ||
parser/react-native-live-markdown-parser.js | ||
|
||
# any js file inside android and ios folders | ||
**/android/**/*.js | ||
**/ios/**/*.js | ||
|
||
# Output of the build process & scripts | ||
lib/**/* | ||
scripts/**/* | ||
|
||
babel.config.js | ||
metro.config.js | ||
react-native.config.js | ||
jest.config.js | ||
webpack.config.js | ||
.eslintrc.js |
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,3 +1,3 @@ | ||
*.pbxproj -text | ||
# specific for windows script files | ||
*.bat text eol=crlf | ||
*.bat text eol=crlf |
Binary file not shown.
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,18 @@ | ||
<!-- If necessary, assign reviewers that know the area or changes well. Feel free to tag any additional reviewers you see fit. --> | ||
|
||
### Details | ||
<!-- Explanation of the change or anything fishy that is going on --> | ||
|
||
### Related Issues | ||
<!-- Please replace GH_LINK with the link to the GitHub issue this Pull Request is related to --> | ||
GH_LINK | ||
|
||
### Manual Tests | ||
<!--- | ||
Most changes should have accompanying tests. Describe the tests you added or if no tests were added an explanation about why one was not needed. | ||
---> | ||
|
||
### Linked PRs | ||
<!--- | ||
Please include links to any update PRs in repos that must change their package.json version. | ||
---> |
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,55 @@ | ||
name: Test Android build | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/build-android.yml | ||
- android/** | ||
- cpp/** | ||
- example/package.json | ||
- example/android/** | ||
- react-native.config.js | ||
merge_group: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/build-android.yml | ||
- android/** | ||
- cpp/** | ||
- example/package.json | ||
- example/android/** | ||
- react-native.config.js | ||
|
||
jobs: | ||
build: | ||
if: github.repository == 'Expensify/react-native-live-markdown' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
react-native-architecture: ['Paper', 'Fabric'] | ||
fail-fast: false | ||
concurrency: | ||
group: build-android-${{ matrix.react-native-architecture }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Install node_modules | ||
run: yarn install --immutable | ||
|
||
- name: Apply patches | ||
working-directory: example | ||
run: yarn patch-package | ||
|
||
- name: Build app | ||
working-directory: example/android | ||
run: ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a -PnewArchEnabled=${{ matrix.react-native-architecture == 'Fabric' && 'true' || 'false' }} |
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,83 @@ | ||
name: Test iOS build | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/build-ios.yml | ||
- RNLiveMarkdown.podspec | ||
- ios/** | ||
- cpp/** | ||
- example/package.json | ||
- example/ios/** | ||
merge_group: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/build-ios.yml | ||
- RNLiveMarkdown.podspec | ||
- ios/** | ||
- cpp/** | ||
- example/package.json | ||
- example/ios/** | ||
|
||
jobs: | ||
build: | ||
if: github.repository == 'Expensify/react-native-live-markdown' | ||
runs-on: macos-13 | ||
strategy: | ||
matrix: | ||
react-native-architecture: ['Paper', 'Fabric'] | ||
fail-fast: false | ||
concurrency: | ||
group: build-ios-${{ matrix.react-native-architecture }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Restore node_modules from cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
node_modules | ||
example/node_modules | ||
key: build-ios-node-modules-${{ matrix.react-native-architecture }}-${{ hashFiles('yarn.lock') }} | ||
restore-keys: build-ios-node-modules-${{ matrix.react-native-architecture }}- | ||
|
||
- name: Install node_modules | ||
run: yarn install --immutable | ||
|
||
- name: Restore Pods from cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
example/ios/Pods | ||
~/Library/Caches/CocoaPods | ||
~/.cocoapods | ||
key: build-ios-pods-${{ matrix.react-native-architecture }}-${{ hashFiles('example/node_modules/react-native/package.json') }} | ||
restore-keys: build-ios-pods-${{ matrix.react-native-architecture }}- | ||
|
||
- name: Install Pods | ||
working-directory: example/ios | ||
env: | ||
RCT_NEW_ARCH_ENABLED: ${{ matrix.react-native-architecture == 'Fabric' && '1' || '0' }} | ||
run: | | ||
bundler install | ||
bundler exec pod install | ||
- name: Remove .xcode.env.local | ||
working-directory: example/ios | ||
run: rm -rf .xcode.env.local | ||
|
||
- name: Restore build artifacts from cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/Library/Developer/Xcode/DerivedData | ||
key: build-ios-derived-data-${{ matrix.react-native-architecture }}-${{ hashFiles('example/node_modules/react-native/package.json') }} | ||
restore-keys: build-ios-derived-data-${{ matrix.react-native-architecture }}- | ||
|
||
- name: Build app | ||
working-directory: example | ||
run: npx react-native@latest run-ios --no-packager |
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,35 @@ | ||
name: Test web build | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/build-web.yml | ||
- src/** | ||
- WebExample/** | ||
merge_group: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/build-web.yml | ||
- src/** | ||
- WebExample/** | ||
|
||
jobs: | ||
build: | ||
if: github.repository == 'Expensify/react-native-live-markdown' | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: build-web-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install node_modules | ||
run: yarn install --immutable | ||
|
||
- name: Build app | ||
working-directory: WebExample | ||
run: npx expo export:web |
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,56 @@ | ||
name: Typecheck, lint and test | ||
on: | ||
pull_request: | ||
merge_group: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
check: | ||
if: github.repository == 'Expensify/react-native-live-markdown' | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: check-root-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install node_modules | ||
run: yarn install --immutable | ||
|
||
- name: Verify there's no parser diff | ||
working-directory: parser | ||
run: | | ||
yarn build | ||
if ! git diff --name-only --exit-code; then | ||
# shellcheck disable=SC2016 | ||
echo 'Error: Parser diff detected! Please run `cd parser && yarn build` and commit the changes.' | ||
exit 1 | ||
fi | ||
- name: Typecheck library | ||
run: yarn tsc --project tsconfig.json --noEmit | ||
|
||
- name: Typecheck parser | ||
run: yarn tsc --project parser/tsconfig.json --noEmit | ||
|
||
- name: Typecheck example app | ||
run: yarn tsc --project example/tsconfig.json --noEmit | ||
|
||
- name: Typecheck WebExample app | ||
run: yarn tsc --project WebExample/tsconfig.json --noEmit | ||
|
||
- name: Lint | ||
run: yarn lint | ||
|
||
- name: Test | ||
run: yarn test |
Oops, something went wrong.