Skip to content

Commit

Permalink
workflow: enable pnpm caching for all jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Jan 13, 2025
1 parent 58f900c commit 07a23fa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- id: pnpm-cache-path
run: echo "pnpm_cache_path=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache-path.outputs.pnpm_cache_path }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install Dependencies
run: pnpm install
- working-directory: addon
Expand Down Expand Up @@ -77,6 +83,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- id: pnpm-cache-path
run: echo "pnpm_cache_path=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache-path.outputs.pnpm_cache_path }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install Dependencies
run: pnpm install
- working-directory: addon
Expand Down

0 comments on commit 07a23fa

Please sign in to comment.