From b8877af3059a7fe3fcc9718f7ec66e222e84c51c Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 4 Feb 2021 21:58:21 +0100 Subject: [PATCH] chore: slimming down install script a little --- .github/workflows/tugboat.yml | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/.github/workflows/tugboat.yml b/.github/workflows/tugboat.yml index 7b7d6050de..45c91dfcce 100644 --- a/.github/workflows/tugboat.yml +++ b/.github/workflows/tugboat.yml @@ -53,37 +53,9 @@ jobs: with: node-version: '14' - name: fetch branch master - run: git fetch origin master - - # Cache every node_modules folder inside the monorepo - - name: cache all node_modules - id: cache-modules - uses: actions/cache@v2 - with: - path: '**/node_modules' - # We use both yarn.lock and package.json as cache keys to ensure that - # changes to local monorepo packages bust the cache. - key: ${{ runner.os }}-v${{ matrix.node-version }}-node_modules-${{ hashFiles('yarn.lock', '**/package.json') }} - - # If we get a cache hit for node_modules, there's no need to bring in the global - # yarn cache or run yarn install, as all dependencies will be installed already. - - name: find location of global yarn cache - id: yarn-cache - if: steps.cache-modules.outputs.cache-hit != 'true' - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: cache global yarn cache - uses: actions/cache@v2 - if: steps.cache-modules.outputs.cache-hit != 'true' - with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - + - name: yarn install - if: steps.cache-modules.outputs.cache-hit != 'true' - run: yarn install --frozen-lockfile + run: yarn workspace e2e-test install # This is required because the environment_url param that Tugboat uses # to tell us where the preview is located isn't supported unless you @@ -110,7 +82,7 @@ jobs: console.log(result); return result.data.environment_url; - - name: Cypress run + - name: cypress run uses: cypress-io/github-action@v2 env: CYPRESS_baseUrl: ${{steps.get-status-env.outputs.result}}