Skip to content

Backpack RN upgrade to 0.70.9 #850

Backpack RN upgrade to 0.70.9

Backpack RN upgrade to 0.70.9 #850

Workflow file for this run

name: Android CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
defaults:
run:
shell: bash -l {0}
env:
flavour: oss
config: debug
api-level: 24
jobs:
Build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup NPM
run: |
nvm install
npm ci
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Gradle Lint
run: ./android/gradlew -p android ktlint
- name: Gradle build
run: ./android/gradlew -p android :app:assembleDebug :backpack-react-native:assembleAndroidTest
- name: Run Android unit tests
run: ./android/gradlew -p android :app:Test :backpack-react-native:Test
env:
NODE_OPTIONS: --openssl-legacy-provider
# KOA-4695 - These tests currently fail so we will need to fix them.
# Android:
# name: Android Connected
# runs-on: macos-latest
# strategy:
# fail-fast: false
# steps:
# - uses: actions/checkout@v2
# - name: Setup NPM
# run: |
# nvm install
# npm ci
# - name: Run Android connected tests
# uses: reactivecircus/android-emulator-runner@v2
# with:
# target: google_apis
# profile: Nexus 4
# sdcard-path-or-size: 512M
# api-level: ${{ env.api-level }}
# force-avd-creation: false
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# script: ./android/gradlew -p android :backpack-react-native:connectedAndroidTest