@@ -4,13 +4,14 @@ description: |
44
55 ### Supported caches
66
7- - NX (`node_modules/.cache/nx`)
8- - Prettier (`node_modules/.cache/prettier`)
9- - Docusaurus (`.docusaurus`, `node_modules/.cache/webpack`)
10- - Astro (`node_modules/.astro`)
11- - Gatsby (`.cache`, `public`)
12- - Storybook (`node_modules/.cache/storybook`)
13- - Jest (auto-detected `cacheDirectory`)
7+ - NX (`node_modules/.cache/nx`): `nx`
8+ - Prettier (`node_modules/.cache/prettier`): `prettier`
9+ - Docusaurus (`.docusaurus`, `node_modules/.cache/webpack`): `docusaurus`
10+ - Vitest (`node_modules/.vite/vitest`): `vitest`
11+ - Astro (`node_modules/.astro`): `astro`
12+ - Gatsby (`.cache`, `public`): `gatsby`
13+ - Storybook (`node_modules/.cache/storybook`): `storybook`
14+ - Jest (auto-detected `cacheDirectory`): `jest`
1415
1516author : hoverkraft
1617branding :
7778 restore-keys : |
7879 ${{ runner.os }}-cache-docusaurus-
7980
81+ - name : ♻️ Vitest cache
82+ if : fromJson(steps.has-installed-dependencies.outputs.installed-dependencies).vitest == true
83+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
84+ with :
85+ path : ${{ inputs.working-directory }}/node_modules/.vite/vitest
86+ key : ${{ runner.os }}-cache-vitest-${{ github.sha }}
87+ restore-keys : |
88+ ${{ runner.os }}-cache-vitest-
89+
8090 - name : ♻️ Astro cache
8191 if : fromJson(steps.has-installed-dependencies.outputs.installed-dependencies).astro == true
8292 uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
0 commit comments