Skip to content

Commit

Permalink
feat(ci): added yamllint check (#79)
Browse files Browse the repository at this point in the history
* feat(ci): added yamllint check

* chore(lint): removed command duplicate
  • Loading branch information
serge1peshcoff authored Jun 8, 2020
1 parent 259ea15 commit 60db8e2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
16 changes: 13 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:
- checkout
- run: docker-compose -f docker/docker-compose.yml -f docker/docker-compose.dev.yml build --no-cache oms-discounts
lint:
eslint:
machine:
image: ubuntu-1604:201903-01
steps:
Expand All @@ -50,6 +50,13 @@ jobs:
path: ~/reports
- store_artifacts:
path: ~/reports
yamllint:
machine:
image: ubuntu-1604:201903-01
steps:
- checkout
- run: pip install yamllint
- run: yamllint -d .yamllint.yml .
docker-build-and-push:
machine:
image: ubuntu-1604:201903-01
Expand Down Expand Up @@ -77,9 +84,12 @@ workflows:
test:
jobs:
- test
lint:
eslint:
jobs:
- eslint
yamllint:
jobs:
- lint
- yamllint
build:
jobs:
- build:
Expand Down
12 changes: 12 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Disabling some rules for yamllint

extends: default

ignore: |
**/node_modules/**
rules:
document-start: disable
line-length: disable
truthy: disable
comments-indentation: disable
1 change: 0 additions & 1 deletion docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ services:
context: ./${PATH_OMS_DISCOUNTS}/..
dockerfile: ./docker/oms-discounts/Dockerfile
image: aegee/oms-discounts:dev
command: sh -c "sh /usr/app/scripts/bootstrap.sh && nodemon -e 'js,json' lib/run.js | bunyan"
volumes:
- ./${PATH_OMS_DISCOUNTS}/../config:/usr/app/src/config
- ./${PATH_OMS_DISCOUNTS}/../lib:/usr/app/src/lib
Expand Down

0 comments on commit 60db8e2

Please sign in to comment.