Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tjzel committed May 9, 2024
1 parent 4bd7e9e commit 975099b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 72 deletions.
35 changes: 7 additions & 28 deletions .github/workflows/build-monorepo-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,43 +29,22 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "17"
- name: Use Node.js
uses: actions/setup-node@v4
- name: Enable corepack
run: corepack enable
distribution: 'zulu'
java-version: '17'
- name: Create directories
run: mkdir -p monorepo/packages
- 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 set version 4.1.1 --yarn-path
touch yarn.lock
yarn
- name: Setup yarn
working-directory: monorepo
run: yarn set version 4.1.1 --yarn-path
- name: Setup yarn lockfile
working-directory: monorepo
run: touch yarn.lock
- name: Echo yarn version
working-directory: monorepo
run: yarn --version
- name: Echo yarn config
working-directory: monorepo
run: yarn config
- name: Create RootApp
working-directory: monorepo
run: npx react-native init RootApp --skip-install ${{ env.REACT_NATIVE_TEMPLATE }}
- name: Create PackageApp
working-directory: monorepo/packages
run: npx react-native 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: Echo yarn version
working-directory: monorepo/RootApp
run: yarn --version
- name: Install dependencies for RootApp
working-directory: monorepo/RootApp
run: yarn install
Expand Down
24 changes: 4 additions & 20 deletions .github/workflows/build-on-windows-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths:
- .github/workflows/build-on-windows-nightly.yml
schedule:
- cron: "37 19 * * *"
- cron: '37 19 * * *'
workflow_dispatch:

jobs:
Expand All @@ -20,29 +20,13 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "17"
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Enable corepack
run: corepack enable
distribution: 'zulu'
java-version: '17'
- name: Create React Native App
run: npx react-native init App
- name: Setup Yarn
working-directory: App
run: yarn set version 4.1.1 --yarn-path
- name: Setup Yarn lockfile
working-directory: App
run: touch yarn.lock
- name: Echo yarn version
working-directory: App
run: yarn --version
- name: Echo yarn config
working-directory: App
run: yarn config
- name: Install dependencies
working-directory: App
run: yarn install
run: yarn
- name: Install Reanimated
working-directory: App
run: yarn add github:software-mansion/react-native-reanimated#${{ github.ref }}
Expand Down
24 changes: 4 additions & 20 deletions .github/workflows/build-v8-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- .github/workflows/build-v8-nightly.yml
- .github/workflows/helper/configureV8.js
schedule:
- cron: "37 19 * * *"
- cron: '37 19 * * *'
workflow_dispatch:

jobs:
Expand All @@ -21,30 +21,14 @@ jobs:
- name: Check out
uses: actions/checkout@v4
with:
path: "reanimated_repo"
- name: Use Node.js
uses: actions/setup-node@v4
- name: Enable corepack
run: corepack enable
path: 'reanimated_repo'
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "17"
distribution: 'zulu'
java-version: '17'
- name: Create React Native app
run: npx react-native init app
- name: Setup Yarn
working-directory: app
run: yarn set version 4.1.1 --yarn-path
- name: Setup Yarn lockfile
working-directory: app
run: touch yarn.lock
- name: Echo yarn version
working-directory: app
run: yarn --version
- name: Echo yarn config
working-directory: app
run: yarn config
- name: Install dependencies
working-directory: app
run: yarn install
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/check-static-framework-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Check static framework nightly build
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
pull_request:
paths:
- .github/workflows/check-static-framework-nightly.yml
schedule:
- cron: "37 19 * * *"
- cron: '37 19 * * *'
workflow_dispatch:

jobs:
Expand All @@ -13,17 +15,17 @@ jobs:
runs-on: macos-14
strategy:
matrix:
react-native-architecture: ["Paper", "Fabric"]
react-native-architecture: ['Paper', 'Fabric']
fail-fast: false
concurrency:
group: ios-static-framework-${{ matrix.react-native-architecture }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Create React Native app
run: npx react-native init app
- name: Install app node dependencies
- name: Install dependencies
working-directory: app
run: yarn add react-native-reanimated@github:software-mansion/react-native-reanimated
run: yarn add github:software-mansion/react-native-reanimated
- name: Install Paper Pods
if: ${{ matrix.react-native-architecture == 'Paper' }}
working-directory: app/ios
Expand Down

0 comments on commit 975099b

Please sign in to comment.