Skip to content

Commit ace91a8

Browse files
committed
Use Node version defined in cli/package.json
1 parent ea6177b commit ace91a8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/cli_tests.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@ jobs:
1515
run:
1616
working-directory: ./cli
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919

2020
- name: Set up Node.js
21-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v4
2222
with:
23-
node-version: "14"
23+
node-version-file: package.json
24+
cache: npm
2425

25-
- name: Install dependencies
26-
run: npm install
26+
# Working around https://github.com/npm/cli/issues/4828
27+
- run: npm install --no-package-lock
28+
29+
- name: Build CLI
30+
run: npm run build
2731

2832
- name: Run tests
2933
run: npm test

0 commit comments

Comments
 (0)