mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 09:20:00 +02:00
fix(ci): add restore-keys for improved cache efficiency
This commit is contained in:
parent
1eff2accb2
commit
51015da659
1 changed files with 9 additions and 10 deletions
19
.github/workflows/ci-pipeline.yml
vendored
19
.github/workflows/ci-pipeline.yml
vendored
|
@ -49,16 +49,6 @@ jobs:
|
||||||
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
lookup-only: true
|
lookup-only: true
|
||||||
|
|
||||||
- name: Setup cache for node_modules
|
|
||||||
if: steps.check-node-modules-cache.outputs.cache-hit != 'true'
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
node_modules
|
|
||||||
*/node_modules
|
|
||||||
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
||||||
restore-keys: ${{ runner.os }}-node-modules-
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
@ -75,6 +65,15 @@ jobs:
|
||||||
if: steps.check-node-modules-cache.outputs.cache-hit != 'true'
|
if: steps.check-node-modules-cache.outputs.cache-hit != 'true'
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Save node_modules cache
|
||||||
|
if: steps.check-node-modules-cache.outputs.cache-hit != 'true'
|
||||||
|
uses: actions/cache/save@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
node_modules
|
||||||
|
*/node_modules
|
||||||
|
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
|
||||||
quality_checks:
|
quality_checks:
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
needs: [check_changes, setup]
|
needs: [check_changes, setup]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue