keycloak-scim/.github/actions/cypress-cache/action.yml
Jon Koops b44aee7535
Use a weekly cache key for PNPM store (#34656)
Closes #34655

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-11-06 08:25:49 +01:00

20 lines
665 B
YAML

name: Cache Cypress
description: Caches Cypress binary to speed up the build.
runs:
using: composite
steps:
- id: cache-key
name: Cache key based on Cypress version
shell: bash
run: echo "key=cypress-binary-$(jq -r '.devDependencies.cypress' js/apps/admin-ui/package.json)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Cache Cypress binary
with:
# See: https://docs.cypress.io/app/references/advanced-installation#Binary-cache
path: |
~/.cache/Cypress
/AppData/Local/Cypress/Cache
~/Library/Caches/Cypress
key: ${{ runner.os }}-${{ steps.cache-key.outputs.key }}