Enable native dependency caching in workflows (#264)

* Add dependency caching for CI workflows

Signed-off-by: GautamBytes <manchandanigautam@gmail.com>

* minor tweak

Signed-off-by: GautamBytes <manchandanigautam@gmail.com>

---------

Signed-off-by: GautamBytes <manchandanigautam@gmail.com>
This commit is contained in:
Gautam Manchandani 2025-07-18 07:03:51 +05:30 committed by GitHub
parent cabc665166
commit ce17c3382f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,7 @@ jobs:
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: '18'
cache: 'npm'
- name: Test Build
run: |
if [ -e package-lock.json ]; then
@ -39,6 +40,7 @@ jobs:
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: '18'
cache: 'npm'
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
@ -90,6 +92,8 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
cache: true
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: '3.10'