A platform for community discussion. Free, open, simple.
DEV: Fix app-cache regression in tests workflow (#28626)
Alan Guo Xiang Tan8adc484804f6
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 8f0ad35c23d..071646e0c5d 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -167,13 +167,18 @@ jobs:echo "127.0.0.1 minio.local" | sudo tee -a /etc/hostsecho "127.0.0.1 discoursetest.minio.local" | sudo tee -a /etc/hosts+ - name: Get CPU cores+ id: cpu-info+ run: echo "cpu-cores=$(nproc)" >> $GITHUB_OUTPUT+- name: Fetch app state cacheuses: actions/cache@v4id: app-cachewith:path: tmp/app-cachekey: >-- ${{ runner.name }}-+ ${{ runner.os }}-+ ${{ steps.cpu-info.outputs.cpu-cores }}-${{ hashFiles('.github/workflows/tests.yml') }}-${{ hashFiles('db/**/*', 'plugins/**/db/**/*') }}-${{ hashFiles('config/environments/test.rb') }}-