Skip to content

Commit f26518f

Browse files
piehmrstork
andauthored
chore: use integration tests support files when calculating cache key for fixtures (#554)
Co-authored-by: Mateusz Bocian <mrstork@users.noreply.github.com>
1 parent 5bc256e commit f26518f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/run-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ jobs:
146146
echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'"
147147
- name: Compute Fixtures Cache Key
148148
id: fixture-cache-key
149-
# Fixtures only need to be rebuilt if anything in the tests/fixtures directory changes,
150-
# so we're using a hash of the files in that directory as the cache key.
149+
# Fixtures only need to be rebuilt if either fixture or support files change,
150+
# so we're using a hash of the fixtures and support files as the cache key.
151151
run:
152-
echo "key=$(git ls-files -s tests/fixtures/ tests/prepare.mjs | git hash-object --stdin)"
152+
echo "key=$(git ls-files -s tests/fixtures/ tests/utils/ tests/prepare.mjs | git hash-object --stdin)"
153153
>> "$GITHUB_OUTPUT"
154154
shell: bash
155155
- name: Cache Fixtures

0 commit comments

Comments
 (0)