From 139cfdedd190960775ec9799c7ea4f3aa60b5cf3 Mon Sep 17 00:00:00 2001 From: hasezoey Date: Sat, 8 Jun 2024 14:26:55 +0200 Subject: [PATCH] chore(workflows/tests): update cache on file changes --- .github/workflows/tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1f47584a..ae452e9f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,7 +37,10 @@ jobs: uses: actions/cache@v4 with: path: ~/.cache/mongodb-binaries - key: ${{ matrix.node-version }} + key: ${{ matrix.node-version }}-${{ hashFiles('**/globalSetup.ts') }} + restore-keys: | + ${{ matrix.node-version }}- + ${{ matrix.node-version }} - name: Install node_modules run: yarn - name: TSCheck