Skip to content

Commit 7b2db0e

Browse files
web-padawanvaadin-bot
authored andcommitted
chore: use actions/setup-node built-in cache (#2273)
1 parent 7d08834 commit 7b2db0e

File tree

6 files changed

+12
-56
lines changed

6 files changed

+12
-56
lines changed

.github/workflows/chrome.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@ jobs:
1414
- name: Setup Node 14.x
1515
uses: actions/setup-node@v2
1616
with:
17-
node-version: 14.x
18-
19-
- uses: actions/cache@v2
20-
with:
21-
path: |
22-
node_modules
23-
*/*/node_modules
24-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
17+
node-version: '14'
18+
cache: 'yarn'
2519

2620
- name: Install Dependencies
2721
run: yarn --frozen-lockfile --no-progress --non-interactive

.github/workflows/firefox.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,8 @@ jobs:
1414
- name: Setup Node 14.x
1515
uses: actions/setup-node@v2
1616
with:
17-
node-version: 14.x
18-
19-
- name: Set environment variables
20-
run: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME/.playwright" >> $GITHUB_ENV
21-
22-
- uses: actions/cache@v2
23-
with:
24-
path: |
25-
node_modules
26-
*/*/node_modules
27-
${{ env.PLAYWRIGHT_BROWSERS_PATH }}
28-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
17+
node-version: '14'
18+
cache: 'yarn'
2919

3020
- uses: microsoft/playwright-github-action@v1
3121

.github/workflows/lint.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,8 @@ jobs:
1212
- name: Setup Node 14.x
1313
uses: actions/setup-node@v2
1414
with:
15-
node-version: 14.x
16-
17-
- uses: actions/cache@v2
18-
with:
19-
path: |
20-
node_modules
21-
*/*/node_modules
22-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
15+
node-version: '14'
16+
cache: 'yarn'
2317

2418
- name: Install Dependencies
2519
run: yarn --frozen-lockfile --no-progress --non-interactive

.github/workflows/lumo.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,8 @@ jobs:
1616
- name: Setup Node 14.x
1717
uses: actions/setup-node@v2
1818
with:
19-
node-version: 14.x
20-
21-
- uses: actions/cache@v2
22-
with:
23-
path: |
24-
node_modules
25-
*/*/node_modules
26-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
19+
node-version: '14'
20+
cache: 'yarn'
2721

2822
- name: Install Dependencies
2923
run: yarn --frozen-lockfile --no-progress --non-interactive

.github/workflows/material.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,8 @@ jobs:
1616
- name: Setup Node 14.x
1717
uses: actions/setup-node@v2
1818
with:
19-
node-version: 14.x
20-
21-
- uses: actions/cache@v2
22-
with:
23-
path: |
24-
node_modules
25-
*/*/node_modules
26-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
19+
node-version: '14'
20+
cache: 'yarn'
2721

2822
- name: Install Dependencies
2923
run: yarn --frozen-lockfile --no-progress --non-interactive

.github/workflows/webkit.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,8 @@ jobs:
1414
- name: Setup Node 14.x
1515
uses: actions/setup-node@v2
1616
with:
17-
node-version: 14.x
18-
19-
- name: Set environment variables
20-
run: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME/.playwright" >> $GITHUB_ENV
21-
22-
- uses: actions/cache@v2
23-
with:
24-
path: |
25-
node_modules
26-
*/*/node_modules
27-
${{ env.PLAYWRIGHT_BROWSERS_PATH }}
28-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
17+
node-version: '14'
18+
cache: 'yarn'
2919

3020
- uses: microsoft/playwright-github-action@v1
3121

0 commit comments

Comments
 (0)