From 77222bc57362fc0374e0f4ba652f9ad5b1960ea1 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