Skip to content

Commit

Permalink
ci: add commitlint
Browse files Browse the repository at this point in the history
Add `commitlint` to enforce proper formatting for all commit messages

#13
  • Loading branch information
trezy authored and BcRikko committed Dec 5, 2018
1 parent 0f988b3 commit 3ec9ab1
Show file tree
Hide file tree
Showing 3 changed files with 2,944 additions and 417 deletions.
19 changes: 19 additions & 0 deletions .circleci/config.yml
Expand Up @@ -94,6 +94,21 @@ jobs:
paths:
- css

lint:
<<: *defaults

steps:
- attach_workspace:
at: .

- run:
name: Lint styles
command: npx stylelint -- --fix

- run:
name: Lint commit messages
command: npx semantic-commitlint -- --ci

# test:
# <<: *defaults

Expand Down Expand Up @@ -157,6 +172,9 @@ workflows:
# - coverage:
# requires:
# - install-dependencies
- lint:
requires:
- install-dependencies
- build:
requires:
- install-dependencies
Expand All @@ -169,6 +187,7 @@ workflows:
requires:
# - test
- build
- lint
filters:
branches:
only: master

0 comments on commit 3ec9ab1

Please sign in to comment.