Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use actions/setup-node built-in cache #2273

Merged
merged 1 commit into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/chrome.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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