Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Execute format check on CI pipeline #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matchilling
Copy link
Member

No description provided.

@@ -5,7 +5,7 @@ node_js:
- "10"
deploy:
provider: script
script: yarn install && yarn run deploy
script: yarn install && yarn format:check && yarn run deploy
Copy link
Contributor

Choose a reason for hiding this comment

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

we want format:write, don't we?

Copy link
Contributor

Choose a reason for hiding this comment

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

actually I'm not 100% sure what you're trying to do here. I'm busy right now, but maybe I can have a go at lunchtime. what we want, I think, is a pre-commit hook.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it should be the contributor's responsibility to commit changes according to the repositories style guide. How they do it should be up to the individual.

Having that said, the purpose of this PR is just to enforce these rules through an additional check. Therefore I've added the yarn format:check cmd which will return a non-zero exit code if the commit is not aligned with the style guide.

@spacebaboon
Copy link
Contributor

spacebaboon commented Apr 17, 2020 via email

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

Successfully merging this pull request may close these issues.

2 participants