Skip to content

Commit 7d263dc

Browse files
committed
..
1 parent 1ec1f41 commit 7d263dc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build_and_test.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
uses: actions/setup-node@v3
3838
with:
3939
node-version: "14.18.3"
40-
cache: "yarn"
4140

4241
- uses: actions/checkout@v3
4342

@@ -60,6 +59,7 @@ jobs:
6059
with:
6160
path: /home/runner/.cache/Cypress
6261
key: ${{ runner.OS }}-cache-cypress-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
62+
- uses: c-hive/gha-yarn-cache@v2
6363
- name: Cache turbo
6464
id: cache-turbo
6565
uses: actions/cache@v2
@@ -221,6 +221,7 @@ jobs:
221221
restore-keys: |
222222
${{ runner.os }}-cache-cypress-
223223
${{ runner.os }}-
224+
- uses: c-hive/gha-yarn-cache@v2
224225
- name: Cache turbo
225226
id: cache-turbo
226227
uses: actions/cache@v2
@@ -327,6 +328,7 @@ jobs:
327328
with:
328329
path: /home/runner/.cache/Cypress
329330
key: ${{ runner.OS }}-cache-cypress-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
331+
- uses: c-hive/gha-yarn-cache@v2
330332
- name: Cache turbo
331333
id: cache-turbo
332334
uses: actions/cache@v2
@@ -343,7 +345,7 @@ jobs:
343345
run: yarn
344346

345347
- name: Build micro services
346-
run: yarn build --scope=rocketchat-services
348+
run: yarn turbo run build --filter=rocketchat-services
347349

348350
- name: E2E Test API
349351
env:
@@ -432,6 +434,7 @@ jobs:
432434
sudo apt clean
433435
docker rmi $(docker image ls -aq)
434436
df -h
437+
- uses: c-hive/gha-yarn-cache@v2
435438
- name: Cache turbo
436439
id: cache-turbo
437440
uses: actions/cache@v2
@@ -463,7 +466,6 @@ jobs:
463466
uses: actions/setup-node@v3
464467
with:
465468
node-version: "14.18.3"
466-
cache: "yarn"
467469

468470
- name: Install Meteor
469471
run: |
@@ -750,7 +752,6 @@ jobs:
750752
uses: actions/setup-node@v3
751753
with:
752754
node-version: "14.18.3"
753-
cache: "yarn"
754755

755756
- name: Login to DockerHub
756757
uses: docker/login-action@v1
@@ -769,7 +770,7 @@ jobs:
769770
770771
# first install repo dependencies
771772
yarn
772-
yarn build --scope=rocketchat-services
773+
yarn turbo run build --filter=rocketchat-services
773774
774775
echo "Building Docker image for service: ${{ matrix.service }}:${IMAGE_TAG}"
775776

0 commit comments

Comments
 (0)