Skip to content

Conversation

@Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Mar 5, 2025

This implements MetaMask/action-checkout-and-setup, which replaces the checkout and Node.js setup steps in CI.

@Mrtenz Mrtenz marked this pull request as ready for review March 5, 2025 10:25
@Mrtenz Mrtenz requested a review from a team March 5, 2025 10:25
cache: 'yarn'
- name: Install dependencies via Yarn
run: yarn --immutable
cache-node-modules: ${{ matrix.node-version == '22.x' }}
Copy link
Member

Choose a reason for hiding this comment

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

Why do we only want to cache on a specific version?

Copy link
Member Author

Choose a reason for hiding this comment

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

The cache key is the same, so it would show warnings that the cache could not be saved if we enable caching for all versions.

Copy link
Member

Choose a reason for hiding this comment

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

So do we not have caching for the other versions or we use the same cache?

Copy link
Member Author

Choose a reason for hiding this comment

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

We use the same cache. AFAIK node_modules is the same for different Node.js versions.

Copy link

@desi desi 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 pulling this over for us!

Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for taking care of this.

@Mrtenz Mrtenz merged commit 7e61f40 into main Mar 5, 2025
21 checks passed
@Mrtenz Mrtenz deleted the mrtenz/action-checkout-and-setup branch March 5, 2025 16: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.

5 participants