Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ runs:
nx
gatsby
storybook
astro
docusaurus

- id: get-package-manager
if: inputs.container == 'true'
Expand Down
1 change: 1 addition & 0 deletions actions/dependencies-cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down
24 changes: 17 additions & 7 deletions actions/dependencies-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ runs:
dependencies-cache: |
nx
jest
vitest

- id: get-package-manager
if: inputs.container == 'true'
Expand Down
Loading