From be6981c6c650efe33d1880cb2d161a060c1e1d29 Mon Sep 17 00:00:00 2001 From: Eric Corson Date: Tue, 25 Jul 2023 14:50:18 +0900 Subject: [PATCH] chore: add yarn cache to CI --- .github/workflows/deploy-wallet-at-pr.yml | 37 +++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-wallet-at-pr.yml b/.github/workflows/deploy-wallet-at-pr.yml index e6de23198d..802fb36dff 100644 --- a/.github/workflows/deploy-wallet-at-pr.yml +++ b/.github/workflows/deploy-wallet-at-pr.yml @@ -22,6 +22,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Restore yarn cache + uses: actions/setup-node@v3 + with: + node-version: '18' + cache: 'yarn' + cache-dependency-path: '**/yarn.lock' + - name: Install dependencies run: yarn @@ -34,6 +41,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Restore yarn cache + uses: actions/setup-node@v3 + with: + node-version: '18' + cache: 'yarn' + cache-dependency-path: '**/yarn.lock' + - name: Install protoc run: sudo apt-get install -y protobuf-compiler @@ -72,6 +86,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Restore yarn cache + uses: actions/setup-node@v3 + with: + node-version: '18' + cache: 'yarn' + cache-dependency-path: '**/yarn.lock' + - name: Install protoc run: sudo apt-get install -y protobuf-compiler @@ -107,6 +128,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Restore yarn cache + uses: actions/setup-node@v3 + with: + node-version: '18' + cache: 'yarn' + cache-dependency-path: '**/yarn.lock' + - name: Install protoc run: sudo apt-get install -y protobuf-compiler @@ -158,9 +186,14 @@ jobs: working-directory: ./apps/namada-interface steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + + - name: Restore yarn cache + uses: actions/setup-node@v3 with: - node-version: "18.x" + node-version: '18' + cache: 'yarn' + cache-dependency-path: '**/yarn.lock' + - name: Install wasm-pack uses: jetli/wasm-pack-action@v0.3.0 with: