Skip to content

Commit

Permalink
wrokflow caching added
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanptm committed Aug 16, 2024
1 parent e738b3d commit 2fe77cc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ jobs:
with:
node-version: '18'

- name: Cache Node.js dependencies for client
uses: actions/cache@v3
with:
path: client/node_modules
key: client-node-modules-${{ hashFiles('client/package-lock.json') }}
restore-keys: |
client-node-modules-
- name: Install dependencies for client
run: npm install
working-directory: client
Expand Down Expand Up @@ -50,6 +58,14 @@ jobs:
with:
node-version: '18'

- name: Cache Node.js dependencies for server
uses: actions/cache@v3
with:
path: server/node_modules
key: server-node-modules-${{ hashFiles('server/package-lock.json') }}
restore-keys: |
server-node-modules-
- name: Install dependencies for server
run: npm install
working-directory: server
Expand Down

0 comments on commit 2fe77cc

Please sign in to comment.