feat: add maestro test on CI/CD #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: React Native CI | |
on: | |
pull_request: | |
branches: main | |
push: | |
branches: main | |
schedule: | |
- cron: '0 0 * * *' # Runs at 00:00 UTC every day | |
jobs: | |
ios-build: | |
name: iOS Build | |
runs-on: macos-latest | |
defaults: | |
run: | |
working-directory: example | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: | | |
npm install --frozen-lockfile | |
cd ios && pod install | |
- name: Build iOS | |
run: | | |
npx react-native run-ios --mode Release --no-packager | |
android-build: | |
name: Android Build | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: example | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
cache-dependency-path: example/package-lock.json | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Install dependencies | |
run: npm install --frozen-lockfile | |
- name: Build Android | |
run: | | |
npx react-native run-android --mode Release --no-packager | |