Browse Source

Install deps individually in each jobs

Janic Duplessis 4 years ago
parent
commit
453875bdc1
1 changed files with 10 additions and 6 deletions
  1. 10
    6
      .github/workflows/ci.yml

+ 10
- 6
.github/workflows/ci.yml View File

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