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

feat(ci): added yamllint check #395

Merged
merged 1 commit into from
Jun 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- checkout
- run: docker-compose -f docker/docker-compose.yml -f docker/docker-compose.dev.yml build --no-cache oms-frontend
lint:
eslint:
machine:
image: ubuntu-1604:201903-01
steps:
Expand All @@ -21,7 +21,19 @@ jobs:
echo 'export PATH=/usr/bin:$PATH' >> $BASH_ENV
which node && node -v
- run: npm install
- run: npm run lint
- run: mkdir -p ~/reports
- run: npm run lint -- --format junit --output-file ~/reports/eslint.xml
- store_test_results:
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 @@ -52,9 +64,12 @@ workflows:
filters:
branches:
ignore: master
lint:
eslint:
jobs:
- eslint
yamllint:
jobs:
- lint
- yamllint
docker-build-and-push:
jobs:
- docker-build-and-push:
Expand Down
6 changes: 3 additions & 3 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ eslint:
enabled: true
config:
extensions:
- .js
- .html
- .vue
- .js
- .html
- .vue
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