Skip to content

Commit

Permalink
chore: use actions/setup-node built-in cache (#2273) (#2288)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
  • Loading branch information
vaadin-bot and web-padawan committed Jul 30, 2021
1 parent f520f8b commit dbc17d1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 56 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/chrome.yml
Expand Up @@ -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
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/firefox.yml
Expand Up @@ -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

Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/lint.yml
Expand Up @@ -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
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/lumo.yml
Expand Up @@ -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
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/material.yml
Expand Up @@ -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
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/webkit.yml
Expand Up @@ -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

Expand Down

0 comments on commit dbc17d1

Please sign in to comment.