test: use native pnpm install for pnpm workspace example #1596
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Situation
The example-start-and-pnpm-workspaces may fail under certain re-run conditions if the Cypress binary cache has been evicted (see Renovate PRs failing in example-start-and-pnpm-workspaces #1594 for full details). The failure message is:
The action does not cache the pnpm store, and instead caches the
.npmcache. It also uses usesnpxcommands (see feature request Package manager caching strategy for pnpm and Yarn Modern #1366).The action is not aware of pnpm workspaces (see feature request Add workspace support for pnpm #1144) and so cannot reliably install and cache dependencies on its own.
Additionally, issue PNPM Workspace example - erroneous for mono-repo setups #1590 reported problems using the example in a monorepo. It should be clear that the example is a workaround only and does not represent full support of pnpm workspaces.
Change
Replace dependency installation in example-start-and-pnpm-workspaces, currently using the action, to instead use a direct call to:
Update the README > pnpm workspaces documentation section accordingly.
Verification
Run and re-run the workflow example-start-and-pnpm-workspaces
Examine the logs for the PR and note that there are no caches used, so they can no longer get out of sync.