From 41675132b354fa30d767af4f642dd19c68066eca Mon Sep 17 00:00:00 2001 From: Kikuo Emoto Date: Thu, 17 Oct 2024 00:57:09 +0900 Subject: [PATCH] feat(gha): enable npm cache The `verify.yml` workflow sets up Node.js with the npm cache enabled. Includes other minor changes. --- .github/workflows/verify.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 0c562d1e5..8a23a3824 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -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 }} @@ -30,6 +30,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} + cache: npm - run: npm ci