Files
medusa-store/.github/actions/cache-deps/action.yml
Riqwan Thamir bacfa3e17b feat(medusa-payment-paypal,medusa-payment-stripe): speed up unit tests in CI (#6806)
* chore: shard unit tests

* chore: move paypal and stripe to swc

* chore: update actions

* chore: refactor http paypal client

* chore: added changeset

* chore: remove medusa changes
2024-03-25 15:27:40 +01:00

23 lines
626 B
YAML

name: cache-deps
description: Creates a cache with the given extension for monorepo dependencies
inputs:
extension:
description: Extension for cache name
runs:
using: composite
steps:
- uses: actions/cache@v3
id: cache
with:
path: |
.yarn/cache
key: ${{ runner.os }}-yarn-${{inputs.extension}}-v8-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{inputs.extension}}-v8
# We want to only bootstrap and install if no cache is found.
- run: yarn install --immutable
shell: bash
- run: yarn build
shell: bash