Skip to content

Commit

Permalink
chore: use setup-node caching with npm ci
Browse files Browse the repository at this point in the history
PR-URL: #505
Credit: @nschonni
Close: #505
Reviewed-by: @isaacs
  • Loading branch information
nschonni authored and isaacs committed Mar 21, 2023
1 parent facdded commit 609d247
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm

- name: Install dependencies
run: npm install
run: npm ci

- name: Run Tests
run: npm test -- -c -t0 --statements=80 --branches=80 --functions=80 --lines=80
3 changes: 2 additions & 1 deletion .github/workflows/isaacs-makework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v2.1.4
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- name: put repo in package.json
run: node .github/workflows/package-json-repo.js
- name: check in package.json if modified
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm install
run: npm ci
- name: Generate typedocs
run: npm run typedoc

Expand Down

0 comments on commit 609d247

Please sign in to comment.