From ee0fff5cf46b840de37808a483caf03f0e88ec0e Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Wed, 18 Jun 2025 13:18:09 +0200 Subject: [PATCH] cache compose tests --- .github/workflows/test.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6d25918a84..2488efa383 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,8 +33,8 @@ jobs: - uses: depot/setup-action@v1 with: oidc: true - - name: Save Run Caches - uses: actions/cache@v4 + - name: Restore Run Caches + uses: actions/cache/restore@v4 with: path: ${{ runner.temp }}/zitadel-make-cache key: zitadel-make-cache-${{ github.ref == 'refs/heads/main' && 'latest' || fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} @@ -47,3 +47,10 @@ jobs: REF_TAG: ${{ github.ref == 'refs/heads/main' && 'latest' || fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} CACHE_DIR: ${{ runner.temp }}/zitadel-make-cache LOGIN_TEST_ACCEPTANCE_BUILD_CONTEXT: . + - name: Save Run Caches + id: cache-primes-save + uses: actions/cache/save@v4 + with: + path: ${{ runner.temp }}/zitadel-make-cache + key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }} + if: always()