-
Notifications
You must be signed in to change notification settings - Fork 20
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
chore: fixed Knip and Jest workflows #35
Conversation
gentlementlegen
commented
Jul 8, 2024
- removed comments by Jest and added a output on the Action instead
- knip reported runs only on knip Action failure
I feel like I see knip fixes once a week. What is the problem? Why don't we make a dynamic solution? |
@0x4007 I would propose to convert the Knip workflow into a reusable workflow (https://docs.github.com/en/actions/using-workflows/reusing-workflows) . There is a correct Knip setup now but it needs to be propagated into multiple repositories. The differences between Knip workflow configurations between repositories are minor: bun vs yarn and different yarn versions. I can work on this as soon as I finish the plugin screencasts. |
I would prefer to just use bun if we need to pick one. Otherwise yarn v1. |
I thought maybe we could get rid of the reporter and use the Action output as we are now doing with Jest. It would greatly simplify the workflow and we could still see all the relevant information easily. |
All of the bot's plugins and our other services are created either from https://github.com/ubiquibot/plugin-template/, either from https://github.com/ubiquity/ts-template. If there are issues in those template repositories (for example with knip workflow) then all repositories created from those templates must be updated accordingly which might be a tedious task. I agree with @gentlementlegen that making most of the workflows used in templates (like cspell, conventional commits, knip, etc...) reusable should solve an issue of manually updating tons of repositories in case there is an issue in any of the templates. |
@gentlementlegen perhaps you can write the specification for this as I don't have as much context on the problem as you. |