1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Cache per ruby version, but restore from all via keys

This commit is contained in:
Matt Jankowski 2024-07-25 11:49:18 -04:00
parent d2d939d379
commit 9c8809c90c

View file

@ -138,13 +138,13 @@ jobs:
bin/flatware fan bin/rails db:test:prepare bin/flatware fan bin/rails db:test:prepare
- name: Cache RSpec persistence file - name: Cache RSpec persistence file
if: matrix.ruby-version == '.ruby-version'
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: | path: |
tmp/rspec/examples.txt tmp/rspec/examples.txt
key: rspec-persistence-${{ github.head_ref || github.ref_name }}-${{ github.sha }} key: rspec-persistence-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
restore-keys: | 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 }}-${{ github.sha }}
rspec-persistence-${{ github.head_ref || github.ref_name }} rspec-persistence-${{ github.head_ref || github.ref_name }}
rspec-persistence-main rspec-persistence-main