Skip to content

Fix podfile

Fix podfile #22

Workflow file for this run

name: Fleetbase Navigator App CI
on:
pull_request:
branches: [ main ] # Trigger for PRs to main branch
jobs:
install_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install dependencies
run: npm install -g yarn
- name: Install dependencies
run: yarn install
android_build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install dependencies
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '17'
- name: Run Jetify
run: npx jetify
- name: Cache Gradle Wrapper
uses: actions/cache@v2
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Cache Gradle Dependencies
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-caches-
- name: Make Gradlew Executable
run: cd android && chmod +x ./gradlew
- name: Build Android
run: cd android && ./gradlew assembleRelease
ios_build:
runs-on: macOS-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install dependencies
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Install CocoaPods
run: sudo gem install cocoapods
- name: Install iOS pods
run: cd ios && pod install
- name: Build iOS
run: npx react-native run-ios --configuration Release