Skip to content

Commit

Permalink
ci: cache node_modules to speed up builds
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Oct 8, 2020
1 parent 1c2c3c8 commit b6331cf
Show file tree
Hide file tree
Showing 4 changed files with 12,849 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ jobs:
with:
node-version: 12

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-polymer-2
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install CLI tools
run: npm install -g bower polymer-cli web-component-tester

Expand Down Expand Up @@ -43,6 +55,18 @@ jobs:
with:
node-version: 12

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-polymer-3
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install CLI tools
run: npm install -g bower magi-cli polymer-modulizer web-component-tester yarn

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
bower_components
node_modules
package-lock.json
yarn.lock
coverage
analysis.json
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

Loading

0 comments on commit b6331cf

Please sign in to comment.