Skip to content

How can I get my GH Action tests to use the NPM version of a peer package? #27035

Answered by shrink
slifty asked this question in Actions
Discussion options

You must be logged in to vote
slifty:

Unfortunately GH actions actions/checkout@v2 seems to have some logic that involves not checking out if the dependency matches the local version.

I don’t think that’s correct, certainly, I have not observed that before: I think this is an issue specific to the monorepo set-up you have. The monorepo tooling is responsible for creating the appropriate dependency linkage through node_modulesactions/checkout just pulls down your repository contents.

As I understand it, the expectation of a monorepo is that the packages are all compatible with each commit, that is, if you introduce a breaking change to Package A then you must update Package B at the same time to be compatible. …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback
2 participants