Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow customizing package manager #29

Merged
merged 13 commits into from
Mar 7, 2023

Conversation

shvlv
Copy link
Contributor

@shvlv shvlv commented Jan 6, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature.

What is the current behavior? (You can also link to an open issue here)
It's not possible to select a package manager to install dependencies for QA workflows.

Yarn and npm definitely go in a different ways to provide specific functionality so it will be nice to run QA with the same package manager as locally. And install dependencies from the related .lock file if it exists.

What is the new behavior (if this is a feature change)?
Add PACKAGE_MANAGER input and related functionality. Essentially code was picked from the Build and push assets workflow (without autodetection).

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No. Because by default is npm as it is now.

Other information:

Copy link
Member

@tyrann0us tyrann0us left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bringing this to all workflows. I left a couple of comments which would need to be applied to all occurrences should you agree with them.
Thanks!

.github/workflows/static-analysis-js.yml Outdated Show resolved Hide resolved
.github/workflows/static-analysis-js.yml Outdated Show resolved Hide resolved
.github/workflows/static-analysis-js.yml Outdated Show resolved Hide resolved
.github/workflows/static-analysis-js.yml Outdated Show resolved Hide resolved
shvlv and others added 3 commits January 24, 2023 07:29
Copy link
Member

@tyrann0us tyrann0us left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for incorporating the changes! While going through build-and-push-assets.yml, I realized that this workflow auto-detects the package manager. IMO, this is great because it saves us from having to specify the package manager in every calling workflow. Can you please update this PR to use the auto-detection as well? Thanks!

.github/workflows/static-analysis-js.yml Outdated Show resolved Hide resolved
@shvlv shvlv linked an issue Mar 6, 2023 that may be closed by this pull request
Copy link
Member

@tyrann0us tyrann0us left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@tyrann0us tyrann0us merged commit 79a3c57 into main Mar 7, 2023
@tyrann0us tyrann0us deleted the feature/customizable-package-manager branch March 7, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Support caching for Yarn 2+
3 participants