Use Node version defined in cli/package.json
This commit is contained in:
parent
ea6177b552
commit
ace91a81ad
1 changed files with 9 additions and 5 deletions
14
.github/workflows/cli_tests.yml
vendored
14
.github/workflows/cli_tests.yml
vendored
|
|
@ -15,15 +15,19 @@ jobs:
|
||||||
run:
|
run:
|
||||||
working-directory: ./cli
|
working-directory: ./cli
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "14"
|
node-version-file: package.json
|
||||||
|
cache: npm
|
||||||
|
|
||||||
- name: Install dependencies
|
# Working around https://github.com/npm/cli/issues/4828
|
||||||
run: npm install
|
- run: npm install --no-package-lock
|
||||||
|
|
||||||
|
- name: Build CLI
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm test
|
run: npm test
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue