Skip to content

Commit

Permalink
ci: cache nodejs versions (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber authored Sep 21, 2023
1 parent 412a9c4 commit 0e65cbf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,22 @@ jobs:
version: 8
run_install: true

- name: Restore Node.js versions
id: cache-nodejs
uses: actions/cache/restore@v3
with:
path: /home/runner/.cache/nve
key: ${{ runner.os }}-nodejs-${{ hashFiles('tests/index.ts') }}

- name: Test
run: pnpm test

- name: Save Node.js versions
uses: actions/cache/save@v3
with:
path: /home/runner/.cache/nve
key: ${{ steps.cache-nodejs.outputs.cache-primary-key }}

- name: Type check
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pnpm type-check
Expand Down

0 comments on commit 0e65cbf

Please sign in to comment.