From 00c8f01f1010a1fd48287fcd3bfa8a10b1a97ae0 Mon Sep 17 00:00:00 2001 From: Chingis Gomboev Date: Fri, 14 Jun 2024 19:24:17 +0800 Subject: [PATCH] fix ci --- .github/workflows/ci.yml | 13 +++++++++++-- package.json | 2 +- yarn.lock | 12 ++++++------ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee94fe9b..a0562b70 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,9 @@ name: Build -on: push +on: + push: + pull_request: + branches: + - master jobs: lint: @@ -73,6 +77,7 @@ jobs: strategy: matrix: node-version: [20] + arch: ['NewArch', 'OldArch'] steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 @@ -85,9 +90,13 @@ jobs: with: path: ${{ steps.yarn-cache.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + - name: Get arch value + run: echo "RCT_NEW_ARCH_ENABLED=${{ matrix.arch == 'NewArch' && '1' || '0' }}" >> $GITHUB_ENV - name: Install Dependencies run: yarn && yarn bootstrap - name: Install Podfiles run: cd example && npx pod-install + - name: Print React Native Info + run: cd example && npx react-native info - name: Build example app - run: cd example && yarn ios + run: cd example && yarn ios --no-packager diff --git a/package.json b/package.json index 3e06c60f..e97d4a08 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "react": "18.2.0", "react-native": "^0.73.0", "react-native-builder-bob": "^0.23.2", - "react-native-test-app": "^3.7.2", + "react-native-test-app": "^3.8.1", "release-it": "^17.2.0", "typescript": "5.4.5" }, diff --git a/yarn.lock b/yarn.lock index 9dd87d5e..ef163284 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2848,7 +2848,7 @@ __metadata: react: "npm:18.2.0" react-native: "npm:^0.73.0" react-native-builder-bob: "npm:^0.23.2" - react-native-test-app: "npm:^3.7.2" + react-native-test-app: "npm:^3.8.1" release-it: "npm:^17.2.0" typescript: "npm:5.4.5" peerDependencies: @@ -10890,9 +10890,9 @@ __metadata: languageName: node linkType: hard -"react-native-test-app@npm:^3.7.2": - version: 3.7.2 - resolution: "react-native-test-app@npm:3.7.2" +"react-native-test-app@npm:^3.8.1": + version: 3.8.1 + resolution: "react-native-test-app@npm:3.8.1" dependencies: "@rnx-kit/react-native-host": "npm:^0.4.9" ajv: "npm:^8.0.0" @@ -10904,7 +10904,7 @@ __metadata: peerDependencies: "@callstack/react-native-visionos": 0.73 - 0.74 "@expo/config-plugins": ">=5.0" - react: 17.0.1 - 18.2 + react: 17.0.1 - 18.3 react-native: 0.66 - 0.74 || >=0.75.0-0 <0.75.0 react-native-macos: ^0.0.0-0 || 0.66 || 0.68 || 0.71 - 0.73 react-native-windows: ^0.0.0-0 || 0.66 - 0.74 @@ -10922,7 +10922,7 @@ __metadata: init: scripts/init.mjs init-test-app: scripts/init.mjs install-windows-test-app: windows/test-app.mjs - checksum: 10c0/c34869aec044805c499482d709b42328c1aa8a1477ccfe97b67cc8bc92e9084be4c6bd28f7c67cdad7669e27181c27dbc68f302145da76e239fd904051deac87 + checksum: 10c0/5e2ba4537fe37697eca91975dd882ccbd44d101f99bca787ef3b16bd0980f96ef2b64d402dc94695d18cd4d0ae72c652fd378031f41618f289b45d8ce28a875e languageName: node linkType: hard