From 9c8809c90c2d6888b1befcec345c1901876bae1b Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 25 Jul 2024 11:49:18 -0400 Subject: [PATCH] Cache per ruby version, but restore from all via keys --- .github/workflows/test-ruby.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-ruby.yml b/.github/workflows/test-ruby.yml index 5d3186ae06e..2801de2bacc 100644 --- a/.github/workflows/test-ruby.yml +++ b/.github/workflows/test-ruby.yml @@ -138,13 +138,13 @@ jobs: bin/flatware fan bin/rails db:test:prepare - name: Cache RSpec persistence file - if: matrix.ruby-version == '.ruby-version' uses: actions/cache@v4 with: path: | tmp/rspec/examples.txt key: rspec-persistence-${{ github.head_ref || github.ref_name }}-${{ github.sha }} restore-keys: | + rspec-persistence-${{ github.head_ref || github.ref_name }}-${{ github.sha }}-${{ matrix.ruby-version }} rspec-persistence-${{ github.head_ref || github.ref_name }}-${{ github.sha }} rspec-persistence-${{ github.head_ref || github.ref_name }} rspec-persistence-main