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

chore: fixed Knip and Jest workflows #35

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

gentlementlegen
Copy link
Member

  • removed comments by Jest and added a output on the Action instead
  • knip reported runs only on knip Action failure

@gentlementlegen gentlementlegen requested a review from rndquu July 8, 2024 05:06
@rndquu rndquu merged commit 5d3f144 into ubiquity-os:development Jul 8, 2024
2 checks passed
@0x4007
Copy link
Member

0x4007 commented Jul 8, 2024

I feel like I see knip fixes once a week. What is the problem? Why don't we make a dynamic solution?

@gitcoindev @gentlementlegen @rndquu rfc

@gitcoindev
Copy link
Contributor

@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.

@0x4007
Copy link
Member

0x4007 commented Jul 9, 2024

I would prefer to just use bun if we need to pick one. Otherwise yarn v1.

@gentlementlegen
Copy link
Member Author

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.

@rndquu
Copy link
Member

rndquu commented Jul 9, 2024

I feel like I see knip fixes once a week. What is the problem? Why don't we make a dynamic solution?

@gitcoindev @gentlementlegen @rndquu rfc

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.

@0x4007
Copy link
Member

0x4007 commented Jul 16, 2024

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.

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.

4 participants