37
37
uses : actions/setup-node@v3
38
38
with :
39
39
node-version : " 14.18.3"
40
- cache : " yarn"
41
40
42
41
- uses : actions/checkout@v3
43
42
60
59
with :
61
60
path : /home/runner/.cache/Cypress
62
61
key : ${{ runner.OS }}-cache-cypress-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
62
+ - uses : c-hive/gha-yarn-cache@v2
63
63
- name : Cache turbo
64
64
id : cache-turbo
65
65
uses : actions/cache@v2
@@ -221,6 +221,7 @@ jobs:
221
221
restore-keys : |
222
222
${{ runner.os }}-cache-cypress-
223
223
${{ runner.os }}-
224
+ - uses : c-hive/gha-yarn-cache@v2
224
225
- name : Cache turbo
225
226
id : cache-turbo
226
227
uses : actions/cache@v2
@@ -327,6 +328,7 @@ jobs:
327
328
with :
328
329
path : /home/runner/.cache/Cypress
329
330
key : ${{ runner.OS }}-cache-cypress-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
331
+ - uses : c-hive/gha-yarn-cache@v2
330
332
- name : Cache turbo
331
333
id : cache-turbo
332
334
uses : actions/cache@v2
@@ -343,7 +345,7 @@ jobs:
343
345
run : yarn
344
346
345
347
- name : Build micro services
346
- run : yarn build --scope =rocketchat-services
348
+ run : yarn turbo run build --filter =rocketchat-services
347
349
348
350
- name : E2E Test API
349
351
env :
@@ -432,6 +434,7 @@ jobs:
432
434
sudo apt clean
433
435
docker rmi $(docker image ls -aq)
434
436
df -h
437
+ - uses : c-hive/gha-yarn-cache@v2
435
438
- name : Cache turbo
436
439
id : cache-turbo
437
440
uses : actions/cache@v2
@@ -463,7 +466,6 @@ jobs:
463
466
uses : actions/setup-node@v3
464
467
with :
465
468
node-version : " 14.18.3"
466
- cache : " yarn"
467
469
468
470
- name : Install Meteor
469
471
run : |
@@ -750,7 +752,6 @@ jobs:
750
752
uses : actions/setup-node@v3
751
753
with :
752
754
node-version : " 14.18.3"
753
- cache : " yarn"
754
755
755
756
- name : Login to DockerHub
756
757
uses : docker/login-action@v1
@@ -769,7 +770,7 @@ jobs:
769
770
770
771
# first install repo dependencies
771
772
yarn
772
- yarn build --scope =rocketchat-services
773
+ yarn turbo run build --filter =rocketchat-services
773
774
774
775
echo "Building Docker image for service: ${{ matrix.service }}:${IMAGE_TAG}"
775
776
0 commit comments