Skip to content

Conversation

@Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Mar 11, 2025

This updates all workflows to use MetaMask/action-checkout-and-setup and remove the use of actions/cache.

@codecov
Copy link

codecov bot commented Mar 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.93%. Comparing base (61853b0) to head (1da051d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3214   +/-   ##
=======================================
  Coverage   94.93%   94.93%           
=======================================
  Files         507      507           
  Lines       11185    11185           
  Branches     1722     1722           
=======================================
  Hits        10619    10619           
  Misses        566      566           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Mrtenz
Copy link
Member Author

Mrtenz commented Mar 11, 2025

@metamaskbot update-pr

@Mrtenz Mrtenz marked this pull request as ready for review March 11, 2025 15:22
@Mrtenz Mrtenz requested a review from a team as a code owner March 11, 2025 15:22
- prepare
- dedupe-yarn-lock
steps:
- name: Checkout repository
Copy link
Member

Choose a reason for hiding this comment

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

I don't fully follow the logic here, we are running checkout, then gh pr checkout and then the MetaMask checkout action too?

Copy link
Member Author

Choose a reason for hiding this comment

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

actions/checkout to allow checking out the PR, then MetaMask/action-checkout-and-setup to install dependencies and handle caching. It skips the checkout step if the files are already there.

run: yarn workspace @metamask/snaps-simulator run build:vendor
- name: Build
run: yarn workspace @metamask/snaps-simulator run build:webpack
- name: Cache "@metamask/snaps-simulator" build
Copy link
Member

Choose a reason for hiding this comment

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

What was this used for before?

Copy link
Member Author

Choose a reason for hiding this comment

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

To run snaps-jest, but we didn't remove this when switching to the Node.js-based simulation.

@Mrtenz Mrtenz added this pull request to the merge queue Mar 12, 2025
Merged via the queue into main with commit 8d318a5 Mar 12, 2025
173 checks passed
@Mrtenz Mrtenz deleted the mrtenz/update-workflows branch March 12, 2025 09:28
Mrtenz added a commit to MetaMask/core that referenced this pull request Mar 14, 2025
## Explanation

<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:

* What is the current state of things and why does it need to change?
* What is the solution your changes offer and how does it work?
* Are there any changes whose purpose might not obvious to those
unfamiliar with the domain?
* If your primary goal was to update one package but you found you had
to update another one along the way, why did you do so?
* If you had to upgrade a dependency, why did you do so?
-->

This updates all workflows to remove the use of `actions/checkout`,
`actions/setup-node`, `actions/cache`. The implementation here is based
on MetaMask/snaps#3214.

## References

MetaMask-planning#3925.

## Changelog

n/a, this doesn't make any changes to packages directly.

## Checklist

- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [ ] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
- [ ] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
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.

3 participants