Skip to content

Commit 3cac210

Browse files
authored
feat: Merge pull request #782 from oscard0m/add-cache-to-node-workflows
ci(workflow): add cache to workflows using actions/setup-node
2 parents dc1951f + f640550 commit 3cac210

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/ci.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v2
11-
with:
12-
node-version: '14'
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: "14"
13+
cache: npm
1314

14-
- name: 📦 Install dependencies
15-
run: npm ci
15+
- name: 📦 Install dependencies
16+
run: npm ci
1617

17-
- name: 🧪 Run tests
18-
run: npm test
18+
- name: 🧪 Run tests
19+
run: npm test
1920

20-
- name: 💄 Code style
21-
run: npm run style
21+
- name: 💄 Code style
22+
run: npm run style

.github/workflows/update_directory_md.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-node@v2
1212
with:
13-
node-version: '14'
13+
node-version: "14"
14+
cache: npm
1415

1516
- name: 📦 Install dependencies
1617
run: npm ci

0 commit comments

Comments
 (0)