From 91b0ec7578065c835889acffecece6b5a6bbcd15 Mon Sep 17 00:00:00 2001 From: Ilya Taratukhin Date: Tue, 21 Jan 2025 13:48:37 +0100 Subject: [PATCH] chore: adjust CI for a new TestProject --- .github/workflows/test-react-native.yml | 71 ++++++++++++++++++++++++- package.json | 1 + 2 files changed, 70 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-react-native.yml b/.github/workflows/test-react-native.yml index 52a0bd5..842ecf7 100644 --- a/.github/workflows/test-react-native.yml +++ b/.github/workflows/test-react-native.yml @@ -4,7 +4,7 @@ on: push: jobs: - android-build: + android-build-TestProject: name: Android - Build and Test React Native Library runs-on: macos-latest @@ -34,7 +34,7 @@ jobs: sleep 10 # Allow Metro Bundler to start # yarn test - ios-build: + ios-build-TestProject: name: iOS - Build and Test React Native Library runs-on: macos-latest @@ -70,3 +70,70 @@ jobs: yarn start & sleep 10 # Allow Metro Bundler to start # yarn test + + android-build-TestProjectLatestRN: + name: Android - Build and Test React Native Library + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + + - name: Install dependencies + run: | + yarn install + yarn build + cd TestProjectLatestRN + yarn install + + - name: Build Android + run: | + cd TestProjectLatestRN/android + ./gradlew assembleDebug + + - name: Start Metro Bundler # and Test App + run: | + cd TestProjectLatestRN + yarn start & + sleep 10 # Allow Metro Bundler to start + # yarn test + + ios-build-TestProjectLatestRN: + name: iOS - Build and Test React Native Library + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + + - name: Install dependencies + run: | + yarn install + yarn build + cd TestProjectLatestRN + yarn install + + - name: Install Pods + run: | + cd TestProjectLatestRN/ios + pod install + + - name: Build iOS + env: + CI: true + run: | + cd TestProjectLatestRN/ios + xcodebuild -workspace TestProjectLatestRN.xcworkspace -scheme TestProjectLatestRN -sdk iphonesimulator -configuration Debug build + + - name: Start Metro Bundler # and Test App + run: | + cd TestProjectLatestRN + yarn start & + sleep 10 # Allow Metro Bundler to start + # yarn test diff --git a/package.json b/package.json index e67617b..f5d8346 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "@commitlint/cli": "^17.1.2", "@fingerprintjs/commit-lint-dx-team": "^0.0.2", "@fingerprintjs/conventional-changelog-dx-team": "^0.1.0", + "@react-native/eslint-config": "0.76.6", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-typescript": "^11.1.6", "@testing-library/react": "^14.1.2",