A platform for community discussion. Free, open, simple.
DEV: Limit re-use of bundler/yarn caches in CI (#24256)
David Taylorde8c8f1d28ac
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex a2687b807fc..baa96095260 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -80,8 +80,7 @@ jobs:uses: actions/cache@v3with:path: vendor/bundle- key: ${{ runner.os }}-${{ matrix.ruby }}-gem-${{ hashFiles('**/Gemfile.lock') }}- restore-keys: ${{ runner.os }}-${{ matrix.ruby }}-gem-+ key: ${{ runner.os }}-${{ matrix.ruby }}-gem-${{ hashFiles('**/Gemfile.lock') }}-cachev2- name: Setup gemsrun: |@@ -101,8 +100,7 @@ jobs:id: yarn-cachewith:path: ${{ steps.yarn-cache-dir.outputs.dir }}- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}- restore-keys: ${{ runner.os }}-yarn-+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-cachev2- name: Yarn installrun: yarn install --frozen-lockfile@@ -307,8 +305,7 @@ jobs:id: yarn-cachewith:path: ${{ steps.yarn-cache-dir.outputs.dir }}- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}- restore-keys: ${{ runner.os }}-yarn-+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-cachev2- name: Yarn installworking-directory: ./app/assets/javascripts/discourse