Skip to content

Commit

Permalink
chore: adjust CI for a new TestProject
Browse files Browse the repository at this point in the history
  • Loading branch information
ilfa committed Jan 21, 2025
1 parent 0f8bb7d commit 91b0ec7
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 2 deletions.
71 changes: 69 additions & 2 deletions .github/workflows/test-react-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

jobs:
android-build:
android-build-TestProject:
name: Android - Build and Test React Native Library
runs-on: macos-latest

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 91b0ec7

Please sign in to comment.