From 3d7267f496087b784030030f9080d093cb9a7255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Szpiech?= Date: Fri, 30 Sep 2022 10:31:38 +0200 Subject: [PATCH] fix: fix capsule workflow (#1563) --- .github/workflows/capsule-cypress.yml | 28 +++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/capsule-cypress.yml b/.github/workflows/capsule-cypress.yml index 99db46166..937d38713 100644 --- a/.github/workflows/capsule-cypress.yml +++ b/.github/workflows/capsule-cypress.yml @@ -54,6 +54,20 @@ jobs: fetch-depth: 0 path: './frontend-monorepo' + # Restore node_modules from cache if possible + - name: Restore node_modules from cache + uses: actions/cache@v3 + with: + path: | + frontend-monorepo/node_modules + /home/runner/.cache/Cypress + key: node_modules_cypress-${{ hashFiles('frontend-monorepo/yarn.lock') }} + + # Install frontend dependencies + - name: Install root dependencies + run: yarn install --frozen-lockfile + working-directory: frontend-monorepo + # Check SHAs - name: Derive appropriate SHAs for base and head for `nx affected` commands uses: nrwl/nx-set-shas@v2 @@ -71,20 +85,6 @@ jobs: if: ${{ contains(env.AFFECTED, 'token') || contains(env.AFFECTED, 'token-e2e') || contains(env.AFFECTED, 'explorer') || contains(env.AFFECTED, 'explorer-e2e') }} run: echo RUN_CAPSULE=true >> $GITHUB_ENV - # Restore node_modules from cache if possible - - name: Restore node_modules from cache - uses: actions/cache@v3 - with: - path: | - frontend-monorepo/node_modules - /home/runner/.cache/Cypress - key: node_modules_cypress-${{ hashFiles('frontend-monorepo/yarn.lock') }} - - # Install frontend dependencies - - name: Install root dependencies - run: yarn install --frozen-lockfile - working-directory: frontend-monorepo - ####### ## Build and run Vegacapsule network #######