feat: enable cache
All checks were successful
renovate / renovate (push) Successful in 6m46s
test-build / build (push) Successful in 7m51s
test-build / guarddog (push) Successful in 14m55s

This commit is contained in:
2026-03-06 23:12:14 -06:00
parent ce9c9c3857
commit 16e14f63ef
3 changed files with 40 additions and 3 deletions

View File

@@ -26,7 +26,18 @@ jobs:
cache: pnpm cache: pnpm
- name: Install Dependencies - name: Install Dependencies
run: pnpm install run: pnpm install --frozen-lockfile
- name: Cache Astro Build Cache
uses: actions/cache@v4
with:
path: |
node_modules/.cache
.astro/cache
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-
${{ runner.os }}-astro-cache-
- name: Lint Code - name: Lint Code
run: pnpm lint run: pnpm lint
@@ -113,6 +124,8 @@ jobs:
COMMIT_SHA=${{ steps.version.outputs.commit }} COMMIT_SHA=${{ steps.version.outputs.commit }}
IS_RELEASE=${{ steps.version.outputs.is_release }} IS_RELEASE=${{ steps.version.outputs.is_release }}
file: ./Dockerfile file: ./Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
- name: ntfy Success - name: ntfy Success
uses: niniyas/ntfy-action@master uses: niniyas/ntfy-action@master

View File

@@ -26,7 +26,18 @@ jobs:
cache: pnpm cache: pnpm
- name: Install Dependencies - name: Install Dependencies
run: pnpm install run: pnpm install --frozen-lockfile
- name: Cache Astro Build Cache
uses: actions/cache@v4
with:
path: |
node_modules/.cache
.astro/cache
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-
${{ runner.os }}-astro-cache-
- name: Lint Code - name: Lint Code
run: pnpm lint run: pnpm lint
@@ -113,6 +124,8 @@ jobs:
COMMIT_SHA=${{ steps.version.outputs.commit }} COMMIT_SHA=${{ steps.version.outputs.commit }}
IS_RELEASE=${{ steps.version.outputs.is_release }} IS_RELEASE=${{ steps.version.outputs.is_release }}
file: ./Dockerfile file: ./Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
- name: ntfy Success - name: ntfy Success
uses: niniyas/ntfy-action@master uses: niniyas/ntfy-action@master

View File

@@ -28,7 +28,18 @@ jobs:
cache: pnpm cache: pnpm
- name: Install Dependencies - name: Install Dependencies
run: pnpm install run: pnpm install --frozen-lockfile
- name: Cache Astro Build Cache
uses: actions/cache@v4
with:
path: |
node_modules/.cache
.astro/cache
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-
${{ runner.os }}-astro-cache-
- name: Lint Code - name: Lint Code
run: pnpm lint run: pnpm lint