Skip to content

Update readme file #2536

Update readme file

Update readme file #2536

Workflow file for this run

name: React Native
on:
push:
branches:
- main
- develop
- release/*
- build
pull_request:
branches:
- main
- develop
- release/*
jobs:
android:
if: ${{ false }} # disable for now
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: "8"
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.7.0
- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: actions/setup-node@v2
with:
node-version: "16"
- uses: pnpm/[email protected]
with:
version: 7.6.0
- run: npm install -g yarn
- name: Build @hashgraph/sdk
run: task build
- name: Install detox
run: npm install -g detox-cli
- name: AVD
run: |
brew install android-platform-tools
pnpm install -g envinfo detox-cli && envinfo
echo yes | $ANDROID_HOME/tools/bin/sdkmanager --channel=0 --verbose "system-images;android-28;default;x86_64"
$ANDROID_HOME/tools/bin/avdmanager --verbose create avd --force --name "Nexus6P" --package "system-images;android-28;default;x86_64" --sdcard 200M --device 11
adb start-server
- name: Build
working-directory: examples/react-native-example
run: |
../../node_modules/.bin/yalc add "@hashgraph/sdk"
yarn
detox build --configuration android
- name: Test
working-directory: examples/react-native-example
run: detox test --configuration android
ios:
if: ${{ false }} # disable for now
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: "8"
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.7.0
- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: actions/setup-node@v2
with:
node-version: "16"
- uses: pnpm/[email protected]
with:
version: 7.6.0
- run: npm install -g yarn
- name: Build @hashgraph/sdk
run: task build
- name: Install detox
run: npm install -g detox-cli
- name: Build
working-directory: examples/react-native-example
run: |
brew tap wix/brew
brew install applesimutils
yalc add "@hashgraph/sdk"
yarn
detox build --configuration ios
- name: Test
working-directory: examples/react-native
run: |
detox test --configuration ios