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

Automate Browserlist DB Update #1664

Merged
merged 4 commits into from
Jan 25, 2023

Conversation

abdullahwaheed
Copy link
Contributor

@abdullahwaheed abdullahwaheed commented Oct 6, 2022

Ticket

Automate browserslist DB update

What has changed

Added a Github workflow that would run periodically(weekly), update browserslist DB, create a PR and merge it automatically.
Used a shared workflow for this

@netlify
Copy link

netlify bot commented Oct 6, 2022

Deploy Preview for paragon-openedx ready!

Name Link
🔨 Latest commit 40a18d1
🔍 Latest deploy log https://app.netlify.com/sites/paragon-openedx/deploys/63d1bbea22d5e10008970ecf
😎 Deploy Preview https://deploy-preview-1664--paragon-openedx.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented Oct 6, 2022

Codecov Report

Base: 90.73% // Head: 90.86% // Increases project coverage by +0.12% 🎉

Coverage data is based on head (44051cc) compared to base (069878d).
Patch has no changes to coverable lines.

❗ Current head 44051cc differs from pull request most recent head 40a18d1. Consider uploading reports for the commit 40a18d1 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1664      +/-   ##
==========================================
+ Coverage   90.73%   90.86%   +0.12%     
==========================================
  Files         233      212      -21     
  Lines        4082     3764     -318     
  Branches      966      899      -67     
==========================================
- Hits         3704     3420     -284     
+ Misses        371      342      -29     
+ Partials        7        2       -5     
Impacted Files Coverage Δ
src/Pagination/getPaginationRange.js 70.58% <0.00%> (-23.53%) ⬇️
src/Pagination/index.jsx 96.29% <0.00%> (-0.14%) ⬇️
src/Card/index.jsx 100.00% <0.00%> (ø)
src/Chip/index.tsx 100.00% <0.00%> (ø)
src/Stack/index.jsx 100.00% <0.00%> (ø)
src/Breadcrumb/index.jsx 100.00% <0.00%> (ø)
src/Card/CardContext.jsx 100.00% <0.00%> (ø)
src/Card/CardImageCap.jsx 100.00% <0.00%> (ø)
src/Card/CardDeck.jsx
...verflowScroll/data/getOverflowElementScrollLeft.js
... and 19 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -0,0 +1,41 @@
name: Update Browserlist DB
Copy link
Member

Choose a reason for hiding this comment

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

Is this Github Action workflow essentially the same for all repos that use browserslist? If so, should we define the workflow once in a shared place that can be used by many repos?

Like what we do with the shared commit linting Github Action workflow file across all the repos: https://github.com/openedx/paragon/blob/master/.github/workflows/lockfileversion-check.yml#L11-L13

The shared Github Action workflows are defined here: https://github.com/openedx/.github/tree/master/workflow-templates, and should be accessible across repos without having to duplicate workflow files, resulting in more maintainable code.

Also, nit: let's change "browserlist" -> "browserslist" to match the actual name of browserslist.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah it seems a right way to do this, let me create a PR there

Copy link
Contributor Author

Choose a reason for hiding this comment

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

created this PR for shared workflow

Copy link
Member

Choose a reason for hiding this comment

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

@abdullahwaheed Left some comments on the PR for the shared workflow!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, updating that PR on the basis of your review

Comment on lines 3 to 5
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
Copy link
Member

Choose a reason for hiding this comment

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

Great to provide a manual way to trigger the workflow! 🙌

@abdullahwaheed abdullahwaheed marked this pull request as ready for review December 20, 2022 18:27
@abdullahwaheed
Copy link
Contributor Author

@adamstankiewicz its ready for review

@adamstankiewicz
Copy link
Member

Thanks @abdullahwaheed! :) I'll go ahead and merge this when the CI passes.

@adamstankiewicz adamstankiewicz merged commit c46156c into master Jan 25, 2023
@adamstankiewicz adamstankiewicz deleted the abdullahwaheed/auto-update-browserlist branch January 25, 2023 23:42
@edx-semantic-release
Copy link
Contributor

🎉 This PR is included in version 20.28.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@edx-semantic-release
Copy link
Contributor

🎉 This PR is included in version 21.0.0-alpha.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants