DEV: Update `app-cache` cache key for tests workflow (#28508)

We cannot just key on `runner.os` the number of CPU cores matter as
well. Therefore, we need to key on `runner.name` instead since each
runner has its own unique OS and CPU cores. Technically, two different
runner with different names can have the same `os` and `cpu cores` but
we don't have that problem now.
This commit is contained in:
Alan Guo Xiang Tan 2024-08-23 11:13:03 +08:00 committed by GitHub
parent 1ac7482271
commit b83a2a34a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ jobs:
with:
path: tmp/app-cache
key: >-
${{ runner.os }}-
${{ runner.name }}-
${{ hashFiles('.github/workflows/tests.yml') }}-
${{ hashFiles('db/**/*', 'plugins/**/db/**/*') }}-
${{ hashFiles('config/environments/test.rb') }}-