From 67f47aac2ef51c4e98a210a137e3e791e1b890dc Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Wed, 18 Jun 2025 12:34:18 +0200 Subject: [PATCH] cache compose tests --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 833c6e1f86..75db2f726a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,8 @@ jobs: uses: actions/cache@v4 with: path: ${{ runner.temp }}/zitadel-make-cache - key: zitadel-make-cache + key: zitadel-make-cache-${{ github.ref == 'refs/heads/main' && 'latest' || fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} + restore-keys: zitadel-make-cache-latest - run: make login-quality env: # latest if branch is main, otherwise image version which is the pull request number