-
Notifications
You must be signed in to change notification settings - Fork 84
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
Allow running with multiple configurations #81
Comments
A comment key configuration would be great! Your proposed implementation sounds right to me. |
Hi @developit, I'm going to take a try implementing this today. |
+1 for this Docusaurus is going to ship experimental Rspack support to replace Webpack as an opt-in feature flag. We now need to monitor the build output of 2 different bundlers, and looks like we can't unfortunately. The closed PR looked fine to me |
I've reopened the PR. If you can help wrangle a review @slorber I am happy to make changes or otherwise make it possible to get that change committed. |
Supported via #82 Thanks again for the patience! |
Awesome thanks Do you plan to do a release soon? Or is there a way to use a "canary" action until then or something? 😄 |
Will release soon-ish, in the next few days |
@slorber you can pin actions to any valid git ref on the main branch of the action repository, not just tags/releases. HEAD is at name: Compressed Size
on: [pull_request]
jobs:
modern-bundle-size-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: preactjs/compressed-size-action@4a35a533ce71b6edb72f2049f4c13d0611d17607
with:
build-script: "build:modern"
comment-key: modern |
Thanks! Will try that asap. |
Just released as 2.7.0/v2 |
Our application (https://github.com/WordPress/openverse-frontend) generates two distinct bundle groups during the build process, a "modern" and "universal" bundle (this is a concept we inherit by using Nuxt). We'd like to have separate compressed size checks for each of the two build types, however, when you try to run the compressed-size-check action twice in one PR, it overwrites the comment.
You can observe the issue in this PR: WordPress/openverse-frontend#1378
If you check the edit history of the bot's comment, you can see that it overwrote itself.
Would y'all accept a PR to add an optional "key"/"id"/"comment-key" (names are hard) input that could be used to specify the comment to update?
Essentially my idea would be to update this conditional to additionally check for the new input in the body: https://github.com/preactjs/compressed-size-action/blob/master/src/index.js#L202-L205
For example, instead of just
compressed-size-check
being in the body, it could becompressed-size-check::${key}
or something along those lines.Thanks!
The text was updated successfully, but these errors were encountered: