Skip to content

Commit e60276f

Browse files
authored
Update actions usage in test workflow
1 parent c27b45d commit e60276f

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,13 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717

18-
- name: Read .nvmrc
19-
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
20-
id: nvm
21-
22-
- name: Use Node.js (.nvmrc)
23-
uses: actions/setup-node@v2
24-
with:
25-
node-version: ${{ steps.nvm.outputs.NVMRC }}
26-
27-
- uses: actions/cache@v2
18+
- name: Use Node.js
19+
uses: actions/setup-node@v4
2820
with:
29-
path: ~/.npm
30-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
31-
restore-keys: |
32-
${{ runner.os }}-node-
21+
node-version-file: .nvmrc
22+
cache: npm
3323

3424
- name: Install Dependencies
3525
run: npm ci

0 commit comments

Comments
 (0)