From 4166c32eb8b0dbf09ab921b9e31ac3f8e02650fd Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Fri, 15 Oct 2021 12:01:04 +0300 Subject: [PATCH] Migrate to simple yarn cache (#1608) Good advice https://twitter.com/sitnikcode/status/1448634966326325255 --- .github/workflows/main.yml | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1772517ae..9b5764120 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,15 +18,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: ${{ env.NODE }} - - name: Set up yarn cache - uses: actions/cache@v2 - with: - path: | - ~/.cache/ms-playwright - .yarn/cache - key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('yarn.lock') }} + cache: yarn - run: yarn install - run: yarn lint - run: yarn typecheck @@ -38,15 +30,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: ${{ env.NODE }} - - name: Set up yarn cache - uses: actions/cache@v2 - with: - path: | - ~/.cache/ms-playwright - .yarn/cache - key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('yarn.lock') }} + cache: yarn - run: yarn install - run: yarn test-regression test: @@ -65,15 +49,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - name: Set up yarn cache - uses: actions/cache@v2 - with: - path: | - ~/.cache/ms-playwright - .yarn/cache - key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }} + cache: yarn - run: yarn install - run: yarn test - run: yarn test-browser