From 97e89af5c11e7a5d79705b40b35d22466e3f90a1 Mon Sep 17 00:00:00 2001 From: jossmoff Date: Sun, 12 Nov 2023 21:32:30 +0000 Subject: [PATCH] :construction_worker: Updating caching to have extra restore keys --- .github/workflows/cicd.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 6f0aa62..d3acb1b 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -37,7 +37,10 @@ jobs: uses: actions/cache/restore@v3 with: path: .mutmut-cache - key: ${{ runner.os }}-mutmut-cache-${{ hashFiles('bookshelf/*.py') }} + key: mutmut-cache-${{ github.head_ref }}-${{ hashFiles('bookshelf/*.py') }} + restore-keys: | + mutmut-cache-${{ github.head_ref }} + mutmut-cache-main - name: 🦠 Run Mutation Tests run: | @@ -54,4 +57,4 @@ jobs: uses: actions/cache/save@v3 with: path: .mutmut-cache - key: ${{ runner.os }}-mutmut-cache-${{ hashFiles('bookshelf/*.py') }} + key: mutmut-cache-${{ github.head_ref }}-${{ hashFiles('bookshelf/*.py') }}