Merge pull request #196 from maxhaibt/field_profile #118
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: Mobile | |
on: | |
push: | |
paths: | |
- "mobile/**" | |
- ".github/workflows/mobile.yml" | |
pull_request: | |
paths: | |
- "mobile/**" | |
- ".github/workflows/mobile.yml" | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '15' | |
- name: Setup NPM cache | |
uses: c-hive/gha-npm-cache@v1 | |
- name: Install root node modules | |
run: npm i | |
- name: Bootstrap monorepo packages | |
run: npm run bootstrap | |
- name: Build core | |
run: npm run build | |
working-directory: core | |
- name: Build mobile | |
run: npm run build | |
working-directory: mobile | |
- name: Unit test mobile | |
run: npm test | |
working-directory: mobile | |
- name: Install Expo global | |
run: npm install expo-cli --global | |
working-directory: mobile | |
- name: Export App | |
run: npm run export | |
working-directory: mobile | |
- name: Build Android app | |
run: docker-compose build android-build && docker-compose run android-build | |
working-directory: mobile |