From dbc17d1bb6aabdbcbb48b26149142659dc96bdb1 Mon Sep 17 00:00:00 2001 From: Vaadin Bot Date: Fri, 30 Jul 2021 12:42:19 +0200 Subject: [PATCH] chore: use actions/setup-node built-in cache (#2273) (#2288) Co-authored-by: Serhii Kulykov --- .github/workflows/chrome.yml | 10 ++-------- .github/workflows/firefox.yml | 14 ++------------ .github/workflows/lint.yml | 10 ++-------- .github/workflows/lumo.yml | 10 ++-------- .github/workflows/material.yml | 10 ++-------- .github/workflows/webkit.yml | 14 ++------------ 6 files changed, 12 insertions(+), 56 deletions(-) diff --git a/.github/workflows/chrome.yml b/.github/workflows/chrome.yml index 1387f8425f..a0e453966c 100644 --- a/.github/workflows/chrome.yml +++ b/.github/workflows/chrome.yml @@ -14,14 +14,8 @@ jobs: - name: Setup Node 14.x uses: actions/setup-node@v2 with: - node-version: 14.x - - - uses: actions/cache@v2 - with: - path: | - node_modules - */*/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + node-version: '14' + cache: 'yarn' - name: Install Dependencies run: yarn --frozen-lockfile --no-progress --non-interactive diff --git a/.github/workflows/firefox.yml b/.github/workflows/firefox.yml index b588940cab..a0eb77c949 100644 --- a/.github/workflows/firefox.yml +++ b/.github/workflows/firefox.yml @@ -14,18 +14,8 @@ jobs: - name: Setup Node 14.x uses: actions/setup-node@v2 with: - node-version: 14.x - - - name: Set environment variables - run: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME/.playwright" >> $GITHUB_ENV - - - uses: actions/cache@v2 - with: - path: | - node_modules - */*/node_modules - ${{ env.PLAYWRIGHT_BROWSERS_PATH }} - key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + node-version: '14' + cache: 'yarn' - uses: microsoft/playwright-github-action@v1 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d5af2d1b49..83a19c47d7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,14 +12,8 @@ jobs: - name: Setup Node 14.x uses: actions/setup-node@v2 with: - node-version: 14.x - - - uses: actions/cache@v2 - with: - path: | - node_modules - */*/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + node-version: '14' + cache: 'yarn' - name: Install Dependencies run: yarn --frozen-lockfile --no-progress --non-interactive diff --git a/.github/workflows/lumo.yml b/.github/workflows/lumo.yml index 3807fee469..93eab96593 100644 --- a/.github/workflows/lumo.yml +++ b/.github/workflows/lumo.yml @@ -16,14 +16,8 @@ jobs: - name: Setup Node 14.x uses: actions/setup-node@v2 with: - node-version: 14.x - - - uses: actions/cache@v2 - with: - path: | - node_modules - */*/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + node-version: '14' + cache: 'yarn' - name: Install Dependencies run: yarn --frozen-lockfile --no-progress --non-interactive diff --git a/.github/workflows/material.yml b/.github/workflows/material.yml index d896e90e8f..949f0c8564 100644 --- a/.github/workflows/material.yml +++ b/.github/workflows/material.yml @@ -16,14 +16,8 @@ jobs: - name: Setup Node 14.x uses: actions/setup-node@v2 with: - node-version: 14.x - - - uses: actions/cache@v2 - with: - path: | - node_modules - */*/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + node-version: '14' + cache: 'yarn' - name: Install Dependencies run: yarn --frozen-lockfile --no-progress --non-interactive diff --git a/.github/workflows/webkit.yml b/.github/workflows/webkit.yml index fd332e822d..3b85aa9606 100644 --- a/.github/workflows/webkit.yml +++ b/.github/workflows/webkit.yml @@ -14,18 +14,8 @@ jobs: - name: Setup Node 14.x uses: actions/setup-node@v2 with: - node-version: 14.x - - - name: Set environment variables - run: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME/.playwright" >> $GITHUB_ENV - - - uses: actions/cache@v2 - with: - path: | - node_modules - */*/node_modules - ${{ env.PLAYWRIGHT_BROWSERS_PATH }} - key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + node-version: '14' + cache: 'yarn' - uses: microsoft/playwright-github-action@v1