Re organise github mobile examples; Consolidating all mobile examples #13
Workflow file for this run
This file contains 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 Chat CI | |
# - Install, lint, test, and build production Expo application | |
# - Runs only on changes to connectReactNativeChat/ folder | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
paths: 'connectReactNativeChat/**' | |
pull_request: | |
branches: [ master ] | |
paths: 'connectReactNativeChat/**' | |
jobs: | |
build: | |
runs-on: macos-12 | |
strategy: | |
matrix: | |
node-version: [16.x] # 18.x, 19.x | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
defaults: | |
run: | |
working-directory: ./connectReactNativeChat | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Expo app dependencies | |
run: yarn | |
- run: yarn lint | |
- name: Create endpoint.js config | |
run: | | |
cp endpoints.sample.js endpoints.js || echo "no endpoint.sample.js found" | |
- run: yarn test | |
- name: Create app.json config | |
run: | | |
rm app.json || echo "no app.json found, creating new" | |
cp app.prod.json app.json | |
- name: Build the Expo application | |
run: CI=1 npx expo prebuild --platform all | |