Skip to content

Commit

Permalink
Merge branch 'main' into @tomekzaw/shareablejsref-native-state
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Jan 13, 2025
2 parents af8241f + 15b3351 commit 92028e1
Show file tree
Hide file tree
Showing 805 changed files with 28,722 additions and 26,624 deletions.
21 changes: 12 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import('eslint').ESLint.ConfigData} */
module.exports = {
root: true,
overrides: [
Expand All @@ -8,6 +9,7 @@ module.exports = {
project: true,
tsconfigRootDir: __dirname,
},
plugins: ['tsdoc'],
extends: ['plugin:@typescript-eslint/recommended-type-checked'],
rules: {
'@typescript-eslint/no-unsafe-call': 'off',
Expand Down Expand Up @@ -39,6 +41,15 @@ module.exports = {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-duplicate-type-constituents': 'error',
'@typescript-eslint/no-shadow': 'error',
'tsdoc/syntax': 'error',
},
},
{
files: ['*.js', '*.jsx'],
plugins: ['jsdoc'],
extends: ['plugin:jsdoc/recommended'],
rules: {
'jsdoc/tag-lines': 'off',
},
},
],
Expand All @@ -51,14 +62,7 @@ module.exports = {
'plugin:import/typescript',
'plugin:react-hooks/recommended',
],
plugins: [
'react',
'react-native',
'import',
'jest',
'@typescript-eslint',
'eslint-plugin-tsdoc',
],
plugins: ['react', 'react-native', 'import', 'jest', '@typescript-eslint'],
env: {
'react-native/react-native': true,
'jest/globals': true,
Expand All @@ -81,7 +85,6 @@ module.exports = {
'no-use-before-define': 'off',
eqeqeq: 'error',
'no-unreachable': 'error',
'tsdoc/syntax': 'error',
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/V8-reanimated-build-check-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: V8 Reanimated build check [Nightly]
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: 0
on:
pull_request:
paths:
- .github/workflows/V8-reanimated-build-check-nightly.yml
- .github/workflows/helper/configureV8.js
schedule:
- cron: '37 19 * * *'
workflow_call:
workflow_dispatch:

jobs:
build:
if: github.repository == 'software-mansion/react-native-reanimated'
runs-on: ubuntu-latest
concurrency:
group: build-v8-${{ github.ref }}
cancel-in-progress: true
env:
APP_NAME: app
LATEST_SUPPORTED_RN_VERSION_IN_V8: 0.75
steps:
- name: Check out
uses: actions/checkout@v4
with:
path: 'reanimated_repo'
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name:
Setup Yarn
# Sometimes `npx @react-native-community/cli init` fails at random.
# Pre-installing it with Yarn seems to improve stability.
run: corepack enable && yarn init
- name: Install React Native CLI
run: yarn add @react-native-community/cli
- name: Create app
run: yarn rnc-cli init ${{ env.APP_NAME }} --version ${{env.LATEST_SUPPORTED_RN_VERSION_IN_V8}} --skip-install --pm yarn --install-pods false --skip-git-init
- name: Setup Yarn Modern in app
working-directory: ${{ env.APP_NAME }}
run: |
touch yarn.lock
yarn set version berry
yarn config set nodeLinker node-modules
- name: Install dependencies
working-directory: ${{ env.APP_NAME }}
run: yarn install
- name: Install Reanimated
working-directory: ${{ env.APP_NAME }}
run: yarn add "react-native-reanimated@https://github.com/software-mansion/react-native-reanimated.git#workspace=react-native-reanimated&commit=${{ github.sha }}"
- name: Install test dependencies
working-directory: ${{ env.APP_NAME }}
run: yarn add react-native-v8 v8-android-jit
- name: Configure V8
run: node reanimated_repo/.github/workflows/helper/configureV8.js
- name: Build Android
working-directory: ${{ env.APP_NAME }}/android
run: ./gradlew assembleDebug --console=plain
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Validate plugin
name: Babel plugin static check
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
pull_request:
paths:
- '.github/workflows/validate-plugin.yml'
- '.github/workflows/babel-plugin-static-check.yml'
- 'packages/react-native-reanimated/plugin/**'
merge_group:
branches:
Expand All @@ -13,8 +13,10 @@ on:
branches:
- main
paths:
- '.github/workflows/validate-plugin.yml'
- '.github/workflows/babel-plugin-static-check.yml'
- 'packages/react-native-reanimated/plugin/**'
workflow_call:
workflow_dispatch:

jobs:
check:
Expand All @@ -35,10 +37,7 @@ jobs:

- name: Install monorepo dependencies
run: yarn install --immutable
- name: Install Reanimated node dependencies
working-directory: packages/react-native-reanimated
run: yarn install
- name: Build package
- name: Build Reanimated
working-directory: packages/react-native-reanimated
run: yarn build

Expand Down
87 changes: 0 additions & 87 deletions .github/workflows/build-monorepo-action.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/build-monorepo-nightly.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/build-monorepo.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/build-on-windows-nightly.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/build-release-npm-package-rea3.yml

This file was deleted.

Loading

0 comments on commit 92028e1

Please sign in to comment.