diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index bba1970..e3d79e8 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -4,7 +4,6 @@ name: ci-test on: [push, pull_request] -name: ci-test jobs: test: @@ -16,7 +15,7 @@ jobs: node_version: [18.x, 20.x, 21.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup Node.js v${{ matrix.node_version }} uses: actions/setup-node@v4 @@ -36,3 +35,11 @@ jobs: uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: cache node modules + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node-