Skip to content

ci: Fix JS caching - #270

Merged
mattrunyon merged 8 commits into
deephaven:mainfrom
mattrunyon:ci-cache-fix
Feb 7, 2024
Merged

mattrunyon merged 8 commits into
deephaven:mainfrom
mattrunyon:ci-cache-fix

Conversation

@mattrunyon

@mattrunyon mattrunyon commented Feb 7, 2024 •

Copy link
Copy Markdown
Collaborator

Updated CI caching to use a glob for the node_modules directories. The previous wildcard would only search 1 level deep which is not valid for our setup. This should fix some edge cases that could cause test failures if the expected package version was installed to the package's local node_modules.

Updated cache action to v4. Added the save-always flag to the node_modules cache which should work whenever it's fixed. Ticket for the flag not working actions/cache#1315. Without that flag functioning, it acts just like v3 cache

@mattrunyon mattrunyon self-assigned this Feb 7, 2024

@mofojed mofojed left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Include a PR description as to what/why you're making this change.

@mattrunyon

Copy link
Copy Markdown
Collaborator Author

Oh ya I will. I actually wanted to test a few different things before merging this. Should have marked it as draft while testing those things

@mattrunyon
mattrunyon marked this pull request as draft February 7, 2024 20:46
@mattrunyon
mattrunyon marked this pull request as ready for review February 7, 2024 21:30
@mattrunyon
mattrunyon requested a review from mofojed February 7, 2024 21:30
@mattrunyon
mattrunyon merged commit 3e24a20 into deephaven:main Feb 7, 2024
@mattrunyon
mattrunyon deleted the ci-cache-fix branch February 7, 2024 21:59
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