From 495317a69a2a605d9081d3987ebd2b4679462f7c Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Tue, 17 Jun 2025 03:39:02 +0200 Subject: [PATCH] use cache --- .github/workflows/test.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e2d58e6860..96a4f1e724 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,8 +10,6 @@ jobs: contents: "read" steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Set up persistent Buildx builder id: buildx uses: docker/setup-buildx-action@v3 @@ -19,12 +17,19 @@ jobs: install: true driver: docker-container use: true + - uses: docker/metadata-action@v5 + id: meta + with: + images: Build - name: Cache uses: actions/cache@v3 id: pnpm-store-cache with: - path: pnpm-store - key: cache-${{ hashFiles('pnpm-lock.yaml') }} + path: | + pnpm + key: pnpm-cache-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: | + pnpm-cache- - name: inject cache into docker uses: reproducible-containers/buildkit-cache-dance@v3.2.0 @@ -32,7 +37,7 @@ jobs: builder: ${{ steps.buildx.outputs.name }} cache-map: | { - "pnpm-store": "/pnpm/store" + "pnpm": "/pnpm" } skip-extraction: ${{ steps.pnpm-store-cache.outputs.cache-hit }} - name: Build