-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (60 loc) · 1.75 KB
/
build.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build CI
on:
push:
branches-ignore:
- master
jobs:
client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.SECRETS_TOKEN }}
submodules: true
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install
run: |
yarn
- name: Linting
run: |
yarn lint:client
- name: Setup Expo
run: |
npm install -g expo-cli
expo login -u ${{ secrets.EXPO_USERNAME }} -p ${{ secrets.EXPO_PASSWORD }}
- name: Build and publish client
run: |
cd client
expo publish -c --release-channel ${GITHUB_REF##*/}
server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.SECRETS_TOKEN }}
submodules: true
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install
run: |
yarn
- name: Linting
run: |
yarn lint:server
- name: Test
run: |
cd server && yarn test
- name: Codecov
run: |
yarn codecov
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
- name: Build server
run: |
cd server
yarn build