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

feat(ci/chromatic): fix node to v14 for turbosnap to work correctly #3763

Merged
merged 3 commits into from
Apr 18, 2022

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Apr 18, 2022

Chromatic is detecting package-lock changes and rerunning every single test instead of only running snapshot tests for changed stories due to npm install using npm@7, resulting in diffs between the lockfileVersion of the repository's package-lock.json and the resulting package-lock.json in the workflow, triggering Turbosnap.

This is causing the costs to balloon with every push. This PR adds a node version setting step to the workflow (to v14) so npm@6 is used to prevent any unnecessary lockfileVersion changes.

karrui added 2 commits April 18, 2022 14:19
Chromatic is detecting package-lock changes and rerunning every single test instead of only running snapshot tests for changed stories.
This is causing the costs to balloon with every push. This is a stopgap measure whilst Chromatic/we investigate a deeper cause.

Tracked in chromaui/chromatic-cli#561
@karrui karrui changed the title feat(ci/chromatic): ignore package-lock changes for turbosnap feat(ci/chromatic): fix node to v14 for turbosnap to work correctly Apr 18, 2022
@karrui karrui merged commit 6105312 into form-v2/develop Apr 18, 2022
@karrui karrui deleted the form-v2/chromatic-ignore-package-lock branch April 18, 2022 06:58
@justynoh justynoh mentioned this pull request Oct 5, 2022
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.

2 participants