diff --git a/actions/build/action.yml b/actions/build/action.yml index 5678a89..dba844b 100644 --- a/actions/build/action.yml +++ b/actions/build/action.yml @@ -79,6 +79,8 @@ runs: nx gatsby storybook + astro + docusaurus - id: get-package-manager if: inputs.container == 'true' diff --git a/actions/dependencies-cache/README.md b/actions/dependencies-cache/README.md index 370a6e4..22bd26c 100644 --- a/actions/dependencies-cache/README.md +++ b/actions/dependencies-cache/README.md @@ -31,6 +31,7 @@ Action to setup dependencies cache managment. - NX (`node_modules/.cache/nx`) - Prettier (`node_modules/.cache/prettier`) - Docusaurus (`.docusaurus`, `node_modules/.cache/webpack`) +- Vitest (`node_modules/.vitest`) - Astro (`node_modules/.astro`) - Gatsby (`.cache`, `public`) - Storybook (`node_modules/.cache/storybook`) diff --git a/actions/dependencies-cache/action.yml b/actions/dependencies-cache/action.yml index 93b1dcb..b2ddf30 100644 --- a/actions/dependencies-cache/action.yml +++ b/actions/dependencies-cache/action.yml @@ -4,13 +4,14 @@ description: | ### Supported caches - - NX (`node_modules/.cache/nx`) - - Prettier (`node_modules/.cache/prettier`) - - Docusaurus (`.docusaurus`, `node_modules/.cache/webpack`) - - Astro (`node_modules/.astro`) - - Gatsby (`.cache`, `public`) - - Storybook (`node_modules/.cache/storybook`) - - Jest (auto-detected `cacheDirectory`) + - NX (`node_modules/.cache/nx`): `nx` + - Prettier (`node_modules/.cache/prettier`): `prettier` + - Docusaurus (`.docusaurus`, `node_modules/.cache/webpack`): `docusaurus` + - Vitest (`node_modules/.vite/vitest`): `vitest` + - Astro (`node_modules/.astro`): `astro` + - Gatsby (`.cache`, `public`): `gatsby` + - Storybook (`node_modules/.cache/storybook`): `storybook` + - Jest (auto-detected `cacheDirectory`): `jest` author: hoverkraft branding: @@ -77,6 +78,15 @@ runs: restore-keys: | ${{ runner.os }}-cache-docusaurus- + - name: ♻️ Vitest cache + if: fromJson(steps.has-installed-dependencies.outputs.installed-dependencies).vitest == true + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + with: + path: ${{ inputs.working-directory }}/node_modules/.vite/vitest + key: ${{ runner.os }}-cache-vitest-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-cache-vitest- + - name: ♻️ Astro cache if: fromJson(steps.has-installed-dependencies.outputs.installed-dependencies).astro == true uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 diff --git a/actions/test/action.yml b/actions/test/action.yml index a160f79..9313adf 100644 --- a/actions/test/action.yml +++ b/actions/test/action.yml @@ -68,6 +68,7 @@ runs: dependencies-cache: | nx jest + vitest - id: get-package-manager if: inputs.container == 'true'