-
Notifications
You must be signed in to change notification settings - Fork 18
44 lines (44 loc) · 1.19 KB
/
mobile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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