Skip to content

Commit

Permalink
feat: improve integrationtests workflow caching (#2551)
Browse files Browse the repository at this point in the history
- Add pnpm cache step using actions/cache@v4 for node_modules and pnpm store
- Remove redundant pnpm cache from setup-node step
- Add plugin dist cache to prevent unnecessary rebuilds

Similar to the caching strategy in smoke-tests.yml, this change should
significantly reduce workflow execution time by caching both dependencies
and build artifacts.

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Sayo <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and wtfsayo authored Jan 20, 2025
1 parent 9c84c37 commit db3c835
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,30 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Cache pnpm
uses: actions/cache@v4
with:
path: |
~/.pnpm-store
**/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-

- name: Cache plugin dist
uses: actions/cache@v4
with:
path: |
**/packages/plugin-*/dist
key: ${{ runner.os }}-plugin-dist-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-plugin-dist-

- uses: pnpm/action-setup@v3
with:
version: 9.15.0

- uses: actions/setup-node@v4
with:
node-version: "23.3.0"
cache: "pnpm"

- name: Clean up
run: pnpm clean
Expand Down

0 comments on commit db3c835

Please sign in to comment.