Skip to content

Commit

Permalink
Merge branch '@kwasow/bobFix' into @jpiasecki/types/nativemethods
Browse files Browse the repository at this point in the history
  • Loading branch information
tjzel committed Apr 25, 2023
2 parents a18f702 + e537f6b commit 0fe27f7
Show file tree
Hide file tree
Showing 471 changed files with 24,855 additions and 31,094 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- Example/android/**
- FabricExample/package.json
- FabricExample/android/**
merge_group:
branches:
- main
push:
branches:
- main
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/build-monorepo-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,19 @@ jobs:
group: ${{ inputs.concurrency_group }}
cancel-in-progress: true
steps:
- name: Create monorepo
run: |
mkdir monorepo
cd monorepo
echo '{"name":"rnos-monorepo-tester","version":"1.0.0","license":"MIT","private":true,"workspaces":{"packages":["RootApp","packages/PackageApp", "AppA", "AppB"],"nohoist":["**/react","**/react-dom","**/react-native","**/react-native/**","**/react-native-codegen","**/react-native-dev-menu"]}}' > package.json
yarn
mkdir packages
- name: Create directories
run: mkdir -p monorepo/packages
- name: Create RootApp
working-directory: monorepo
run: npx react-native@next init RootApp --skip-install ${{ env.REACT_NATIVE_TEMPLATE }}
- name: Create PackageApp
working-directory: monorepo/packages
run: npx react-native@next init PackageApp --skip-install ${{ env.REACT_NATIVE_TEMPLATE }}

- name: Setup monorepo
working-directory: monorepo
run: |
echo '{"name":"rnos-monorepo-tester","version":"1.0.0","license":"MIT","private":true,"workspaces":{"packages":["RootApp","packages/PackageApp", "AppA", "AppB"],"nohoist":["**/react","**/react-dom","**/react-native","**/react-native/**","**/react-native-codegen","**/react-native-dev-menu"]}}' > package.json
yarn
- name: Install dependencies for RootApp
working-directory: monorepo/RootApp
run: yarn add github:software-mansion/react-native-reanimated#${{ github.ref }}
Expand All @@ -63,11 +62,11 @@ jobs:
- name: Build iOS app RootApp
if: ${{ inputs.platform == 'iOS' }}
working-directory: monorepo/RootApp
run: yarn react-native run-ios
run: yarn react-native run-ios --simulator='iPhone 14'
- name: Build iOS app PackageApp
if: ${{ inputs.platform == 'iOS' }}
working-directory: monorepo/packages/PackageApp
run: yarn react-native run-ios
run: yarn react-native run-ios --simulator='iPhone 14'

- name: Build Android RootApp
if: ${{ inputs.platform == 'Android' }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-monorepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- RNReanimated.podspec
- scripts/reanimated_utils.rb
- android/build.gradle
merge_group:
branches:
- main
push:
branches:
- main
Expand Down
28 changes: 26 additions & 2 deletions .github/workflows/build-npm-package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,34 @@ jobs:
env:
ANDROID_NDK: ${{ steps.setup-ndk.outputs.ndk-path }}
run: >-
./createNPMPackage.sh ${{ inputs.version }}
./createNPMPackage.sh ${{ inputs.version }} 2> build.log
- name: Check if any node_modules were packed
id: node_modules
run: >-
! grep --silent -E "node_modules/.+"
- name: Check if size is over 1MB
if: ${{ inputs.ref != 'Reanimated2' }}
id: size
run: grep --silent -E "npm notice package size:\s*[0-9][0-9]?[0-9]?(\.[0-9]*)?\s*kB" build.log

- name: Show build log
if: failure() && steps.build.outcome == 'failure'
run: >-
cat build.log
- name: Show packed node_modules
if: failure() && steps.node_modules.outcome == 'failure'
run: >-
! grep -E "node_modules/.+"
- name: Show exceeded package size
if: failure() && steps.size.outcome == 'failure'
run: grep -E "npm notice package size:" build.log

- run: echo "PACKAGE_NAME=$(ls -l | egrep -o "react-native-reanimated-(.*)(=?\.tgz)")" >> $GITHUB_ENV

- name: Upload npm package
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-on-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- 'android/**'
- 'Common/**'
- package.json
merge_group:
branches:
- main
push:
branches:
- main
Expand All @@ -18,8 +21,9 @@ jobs:
cancel-in-progress: true
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Create React Native App
run: npx react-native init App
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build-v8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ on:
- 'Common/**'
- 'FabricExample/package.json'
- 'Example/package.json'
merge_group:
branches:
- main
push:
branches:
- main

env:
REACT_NATIVE_VERSION: "0.71.3"
REACT_NATIVE_VERSION: "0.71.6"

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/close-when-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: 'software-mansion-labs/swmansion-bot'
ref: stable

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ name: Test docs build
on:
pull_request:
paths:
- '.github/workflows/docs-check.yml'
- 'docs/**'
merge_group:
branches:
- main

jobs:
build:
Expand All @@ -12,9 +16,9 @@ jobs:
WORKING_DIRECTORY: docs
steps:
- name: Check out
uses: actions/checkout@v1
uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ios-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- Example/ios/**
- FabricExample/package.json
- FabricExample/ios/**
merge_group:
branches:
- main
push:
branches:
- main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Generate awesome content
run: >-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/needs-more-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
cancel-in-progress: true
steps:
- name: Checkout Actions
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: 'software-mansion-labs/swmansion-bot'
ref: stable

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/needs-repro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
cancel-in-progress: true
steps:
- name: Checkout Actions
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: 'software-mansion-labs/swmansion-bot'
ref: stable

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
cancel-in-progress: true
steps:
- name: Checkout Actions
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: 'software-mansion-labs/swmansion-bot'
ref: stable

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/static-example-apps-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@ name: Test TypeScript and Lint
on:
pull_request:
paths:
- '.github/workflows/static-example-apps-checks.yml'
- 'app/**'
- 'Example/**'
- 'FabricExample/**'
- 'WebExample/**'
- 'TVOSExample/**'
- '*'
merge_group:
branches:
- main
push:
branches:
- main
Expand All @@ -12,17 +20,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
working-directory: [Example, FabricExample]
working-directory: [app, Example, FabricExample, WebExample, TVOSExample]
concurrency:
group: typescript-${{ matrix.working-directory }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
cache: 'yarn'
- name: Install root node dependencies
run: yarn
Expand All @@ -34,4 +42,8 @@ jobs:
run: yarn tsc --noEmit
- name: Lint
working-directory: ${{ matrix.working-directory }}
run: yarn lint:js
run: yarn lint
- name: Build
working-directory: ${{ matrix.working-directory }}
if: ${{ matrix.working-directory == 'WebExample' }}
run: yarn build
8 changes: 6 additions & 2 deletions .github/workflows/static-root-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ name: Test TypeScript and Lint
on:
pull_request:
paths:
- '.github/workflows/static-root-checks.yml'
- 'src/**'
- '*'
merge_group:
branches:
- main
push:
branches:
- main
Expand All @@ -15,9 +19,9 @@ jobs:
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tvos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- 'Common/**'
- 'TVOSExample/package.json'
- 'TVOSExample/ios/**'
merge_group:
branches:
- main
push:
branches:
- main
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/validate-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
- 'Common/cpp/**'
- 'ios/native/**'
- 'android/src/main/cpp/**'
merge_group:
branches:
- main

jobs:
lint:
Expand All @@ -27,10 +30,10 @@ jobs:
python-version: [3.7]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/validate-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- 'ios/**'
- 'package.json'
- 'scripts/validate-ios.sh'
merge_group:
branches:
- main

jobs:
check:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/validate-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ name: Java Lint
on:
pull_request:
paths:
- '.github/workflows/validate-java.yml'
- 'android/src/main/java/**'
- 'android/build.gradle'
merge_group:
branches:
- main
push:
branches:
- main
Expand All @@ -15,11 +19,11 @@ jobs:
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
cache: 'yarn'
- name: Install node dependencies
run: yarn
Expand Down
Loading

0 comments on commit 0fe27f7

Please sign in to comment.