|
@@ -13,6 +13,15 @@ jobs:
|
13
|
13
|
node-version: 12.x
|
14
|
14
|
- name: Install yarn
|
15
|
15
|
run: npm install -g yarn
|
|
16
|
+ - name: Get yarn cache
|
|
17
|
+ id: yarn-cache
|
|
18
|
+ run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
19
|
+ - uses: actions/cache@v1
|
|
20
|
+ with:
|
|
21
|
+ path: ${{ steps.yarn-cache.outputs.dir }}
|
|
22
|
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
23
|
+ restore-keys: |
|
|
24
|
+ ${{ runner.os }}-yarn-
|
16
|
25
|
- name: Install dependencies
|
17
|
26
|
run: yarn install
|
18
|
27
|
- name: Run tests
|
|
@@ -27,6 +36,15 @@ jobs:
|
27
|
36
|
node-version: 12.x
|
28
|
37
|
- name: Install yarn
|
29
|
38
|
run: npm install -g yarn
|
|
39
|
+ - name: Get yarn cache
|
|
40
|
+ id: yarn-cache
|
|
41
|
+ run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
42
|
+ - uses: actions/cache@v1
|
|
43
|
+ with:
|
|
44
|
+ path: ${{ steps.yarn-cache.outputs.dir }}
|
|
45
|
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
46
|
+ restore-keys: |
|
|
47
|
+ ${{ runner.os }}-yarn-
|
30
|
48
|
- name: Install dependencies
|
31
|
49
|
run: yarn install
|
32
|
50
|
- name: Build android example app
|
|
@@ -46,6 +64,15 @@ jobs:
|
46
|
64
|
run: gem install cocoapods
|
47
|
65
|
- name: Install yarn
|
48
|
66
|
run: npm install -g yarn
|
|
67
|
+ - name: Get yarn cache
|
|
68
|
+ id: yarn-cache
|
|
69
|
+ run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
70
|
+ - uses: actions/cache@v1
|
|
71
|
+ with:
|
|
72
|
+ path: ${{ steps.yarn-cache.outputs.dir }}
|
|
73
|
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
74
|
+ restore-keys: |
|
|
75
|
+ ${{ runner.os }}-yarn-
|
49
|
76
|
- name: Install dependencies
|
50
|
77
|
run: yarn install
|
51
|
78
|
- name: Install pods
|