File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 82
82
run : npm run build
83
83
- name : ' Lint'
84
84
run : npm run lint
85
+ - name : Compute Fixtures Cache Key
86
+ id : fixture-cache-key
87
+ # Fixtures only need to be rebuilt if anything in the tests/fixtures directory changes,
88
+ # so we're using a hash of the files in that directory as the cache key.
89
+ run : echo "key=$(git ls-files -s tests/fixtures/ tests/prepare.mjs | git hash-object --stdin)" >> "$GITHUB_OUTPUT"
90
+ - name : Cache Fixtures
91
+ id : cache-fixtures
92
+ uses : actions/cache@v4
93
+ with :
94
+ path : tests/fixtures
95
+ key : integration-fixtures-${{ runner.os }}-${{ steps.fixture-cache-key.outputs.key }}
85
96
- name : ' Prepare Fixtures'
97
+ if : steps.cache-fixtures.outputs.cache-hit != 'true'
86
98
run : npm run pretest
87
99
- name : ' Test'
88
100
run : npm run test:ci -- --shard=${{ matrix.shard }}
You can’t perform that action at this time.
0 commit comments