Skip to content

Commit

Permalink
feat(gha): enable npm cache
Browse files Browse the repository at this point in the history
The `verify.yml` workflow sets up Node.js with the npm cache enabled.
Includes other minor changes.
  • Loading branch information
kikuomax committed Oct 16, 2024
1 parent b301a53 commit 4167513
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ on:
- main
- migrate-to-typescript # TODO: until the migration is complete
- migrate-to-typescript-verify # TODO: remove after the experiment

pull_request:
branches:
- dev
- main
- migrate-to-typescript # TODO: until the migration is complete
workflow_dispatch: # TODO: to manually run the tests. remove later

jobs:
verify:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18.x, 20.x, 22.x]
node-version: [18, 20, 22]

runs-on: ${{ matrix.os }}

Expand All @@ -30,6 +30,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm

- run: npm ci

Expand Down

0 comments on commit 4167513

Please sign in to comment.