Skip to content

Commit

Permalink
Cache nodejs packages in gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Jun 13, 2024
1 parent 0745374 commit 7664c0d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20

- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: yarn
- name: Run all lint tasks
Expand Down

0 comments on commit 7664c0d

Please sign in to comment.