Skip to content

Commit 5aceedc

Browse files
authored
chore: Add cache for node_modules
1 parent 92e4c88 commit 5aceedc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/checks.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2
18+
- name: Cache node_modules
19+
uses: actions/cache@v2
20+
with:
21+
path: '**/node_modules'
22+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
1823
- name: Setup Node.js
1924
uses: actions/setup-node@v1
2025
with:
@@ -30,6 +35,11 @@ jobs:
3035
steps:
3136
- name: Checkout
3237
uses: actions/checkout@v2
38+
- name: Cache node_modules
39+
uses: actions/cache@v2
40+
with:
41+
path: '**/node_modules'
42+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
3343
- name: Setup Node.js
3444
uses: actions/setup-node@v1
3545
with:
@@ -46,6 +56,11 @@ jobs:
4656
steps:
4757
- name: Checkout
4858
uses: actions/checkout@v2
59+
- name: Cache node_modules
60+
uses: actions/cache@v2
61+
with:
62+
path: '**/node_modules'
63+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
4964
- name: Setup Node.js
5065
uses: actions/setup-node@v1
5166
with:

0 commit comments

Comments
 (0)