Skip to content

Commit

Permalink
ci: 👷 cache npm in CI
Browse files Browse the repository at this point in the history
this should make the "Install Node Dependencies" step faster by not redownloading dependencies for each step
  • Loading branch information
nstringham committed Oct 24, 2022
1 parent 0755ecf commit 286de70
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: package-lock.json

- name: Install Node Dependencies
run: npm ci
Expand All @@ -34,6 +36,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: functions/package-lock.json

- name: Install Node Dependencies
run: npm --prefix functions ci
Expand All @@ -52,6 +56,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: functions/package-lock.json

- name: Install Node Dependencies
run: npm --prefix functions ci
Expand All @@ -70,6 +76,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: functions/package-lock.json

- name: Install Node Dependencies
run: npm --prefix functions ci
Expand All @@ -88,6 +96,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: client/package-lock.json

- name: Install Node Dependencies
run: npm --prefix client ci
Expand All @@ -106,6 +116,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: client/package-lock.json

- name: Install Node Dependencies
run: npm --prefix client ci
Expand All @@ -124,6 +136,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: |
client/package-lock.json
functions/package-lock.json
- name: Install Java
uses: actions/setup-java@v3
Expand Down Expand Up @@ -160,6 +176,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: |
client/package-lock.json
functions/package-lock.json
- name: Install Node Dependencies
run: |
Expand Down Expand Up @@ -193,6 +213,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: |
client/package-lock.json
functions/package-lock.json
- name: Install Node Dependencies
run: |
Expand Down

0 comments on commit 286de70

Please sign in to comment.