Skip to content

Commit f204910

Browse files
clydinhansl
authored andcommitted
ci: add precise commits code formatting check
1 parent 920be3a commit f204910

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.circleci/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ jobs:
8585
steps:
8686
- attach_workspace: *attach_options
8787
- run: npm run validate -- --ci
88+
- run:
89+
name: Validate Code Formatting
90+
command: |
91+
if [[ -n "${CIRCLE_PR_NUMBER}" ]]; then
92+
yarn run precise-commits --check-only --head=$CIRCLE_SHA1 --base=$(git merge-base HEAD $CIRCLE_BRANCH)
93+
fi
8894
8995
test:
9096
<<: *defaults

0 commit comments

Comments
 (0)