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

ci: add prettier workflow and refactor others #689

Open
wants to merge 2 commits into
base: v3
Choose a base branch
from

Conversation

romadryud
Copy link
Contributor

Description

In this pr we have huge workflow refactoring, and it's only the start of it. I added a workflow with the name preview which will be the base workflow for preview all our changes, for now, preview has a prettier check and test workflows. In the near future preview will have all kinds of preview (docs, packages) and other tools like statistics and so on.

Prettier check can produce 2 variants of exit code for errors:

  • 1 means there are format errors which can be fixed
  • 2 means there are format errors which can not be fixed

If we have 1 variant, our bot will write a comment, "Looks like you forgot to run Prettier. Hopefully, you can automatically fix it by typing /prettify command." After sending, this command will trigger workflow to automatically run prettier and create a commit for it, and the original comment will be deleted by the bot.

If we have 2 variant, our workflow will fail and merging to the default branch will be impossible.

Closes #503
This depends on #685, after merging and rebase comments with command will work.

@stackblitz
Copy link

stackblitz bot commented Oct 23, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel
Copy link

vercel bot commented Oct 23, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @artalar on Vercel.

@artalar first needs to authorize it.

@romadryud romadryud force-pushed the setup-github-actions-503-part-2 branch from 0818330 to 27d6661 Compare November 17, 2023 19:20
@romadryud romadryud force-pushed the setup-github-actions-503-part-2 branch from 27d6661 to 7465691 Compare December 31, 2023 16:08
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.

Setup GitHub Action to run code style tools
1 participant