-
Notifications
You must be signed in to change notification settings - Fork 639
Update workflows to use MetaMask/action-checkout-and-setup
#3214
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
|
@metamaskbot update-pr |
| - prepare | ||
| - dedupe-yarn-lock | ||
| steps: | ||
| - name: Checkout repository |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
## 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
This updates all workflows to use
MetaMask/action-checkout-and-setupand remove the use ofactions/cache.