Skip to content

Commit

Permalink
chore: use actions/setup-node built-in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Jul 27, 2021
1 parent 6491b07 commit 6631b8b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 52 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
6 changes: 2 additions & 4 deletions .github/workflows/lint.yml
Expand Up @@ -16,10 +16,8 @@ jobs:

- 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 6631b8b

Please sign in to comment.