From 0d639fdeb95deaa588fd29e63c275ea8b10a25d8 Mon Sep 17 00:00:00 2001 From: zomars Date: Sat, 18 Feb 2023 15:36:00 -0700 Subject: [PATCH] Revert --- .github/workflows/yarn-install.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/yarn-install.yml b/.github/workflows/yarn-install.yml index 5d42bdaf22..f01ca72297 100644 --- a/.github/workflows/yarn-install.yml +++ b/.github/workflows/yarn-install.yml @@ -7,23 +7,28 @@ on: required: true jobs: - e2e-test: - name: E2E tests + setup: + name: Yarn install & cache runs-on: ubuntu-latest + concurrency: + group: yarn-install-${{ github.sha }} timeout-minutes: 10 steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: ${{ env.node_version }} - - name: Restore node_modules from cache + node-version: ${{ secrets.NODE_VERSION }} + # node_module cache helps to avoid 1 minute copying from yarn cache on every job run + - name: node_modules cache + id: node-modules-cache uses: actions/cache@v3 env: cache-name: node-modules-yarn - cache-fingerprint: ${{ env.node_version }}-${{ hashFiles('yarn.lock') }} + cache-key: ${{ secrets.NODE_VERSION }}-${{ hashFiles('yarn.lock') }} with: path: node_modules - key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.cache-fingerprint }} - - run: yarn playwright install - - name: Run tests - run: yarn e2e + key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.cache-key }} + restore-keys: ${{ runner.os }}-${{ env.cache-name }}- + - name: Yarn install + if: steps.node-modules-cache.outputs.cache-hit != 'true' + run: yarn install --prefer-offline --frozen-lockfile