Procházet zdrojové kódy

Test building example app on CI

Janic Duplessis před 4 roky
rodič
revize
207168555a

+ 29
- 0
.github/workflows/ci.yml Zobrazit soubor

@@ -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

+ 0
- 20
.github/workflows/nodejs.yml Zobrazit soubor

@@ -1,20 +0,0 @@
1
-name: Node CI
2
-
3
-on: [push, pull_request]
4
-
5
-jobs:
6
-  build:
7
-    runs-on: ubuntu-latest
8
-
9
-    steps:
10
-      - uses: actions/checkout@v1
11
-      - name: Use Node.js 10.x
12
-        uses: actions/setup-node@v1
13
-        with:
14
-          node-version: 10.x
15
-      - name: Install yarn
16
-        run: npm install -g yarn
17
-      - name: Install dependencies
18
-        run: yarn install
19
-      - name: Run tests
20
-        run: yarn test

+ 1
- 1
example/android/app/build.gradle Zobrazit soubor

@@ -76,7 +76,7 @@ import com.android.build.OutputFile
76 76
  */
77 77
 
78 78
 project.ext.react = [
79
-    entryFile: "index.js",
79
+    entryFile: "example/index.js",
80 80
     enableHermes: false,  // clean and rebuild if changing
81 81
 ]
82 82