|
@@ -0,0 +1,29 @@
|
|
1
|
+name: CI
|
|
2
|
+
|
|
3
|
+on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+jobs:
|
|
6
|
+ install-deps:
|
|
7
|
+ runs-on: ubuntu-latest
|
|
8
|
+ steps:
|
|
9
|
+ - uses: actions/checkout@v1
|
|
10
|
+ - name: Use Node.js 12.x
|
|
11
|
+ uses: actions/setup-node@v1
|
|
12
|
+ with:
|
|
13
|
+ node-version: 12.x
|
|
14
|
+ - name: Install yarn
|
|
15
|
+ run: npm install -g yarn
|
|
16
|
+ - name: Install dependencies
|
|
17
|
+ run: yarn install
|
|
18
|
+ js-tests:
|
|
19
|
+ runs-on: ubuntu-latest
|
|
20
|
+ needs: install-deps
|
|
21
|
+ steps:
|
|
22
|
+ - name: Run tests
|
|
23
|
+ run: yarn test
|
|
24
|
+ android-build:
|
|
25
|
+ runs-on: ubuntu-latest
|
|
26
|
+ needs: install-deps
|
|
27
|
+ steps:
|
|
28
|
+ - name: Build android example app
|
|
29
|
+ run: cd example/app && ./gradlew assembleRelease
|