mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 03:32:45 +08:00
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:
parent
1ac7482271
commit
b83a2a34a4
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -163,7 +163,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: tmp/app-cache
|
path: tmp/app-cache
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-
|
${{ runner.name }}-
|
||||||
${{ hashFiles('.github/workflows/tests.yml') }}-
|
${{ hashFiles('.github/workflows/tests.yml') }}-
|
||||||
${{ hashFiles('db/**/*', 'plugins/**/db/**/*') }}-
|
${{ hashFiles('db/**/*', 'plugins/**/db/**/*') }}-
|
||||||
${{ hashFiles('config/environments/test.rb') }}-
|
${{ hashFiles('config/environments/test.rb') }}-
|
||||||
|
|
Loading…
Reference in New Issue
Block a user