diff --git a/.circleci/config.yml b/.circleci/config.yml index e729a7066b4..e7c84fbdbca 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -155,7 +155,6 @@ jobs: bundle exec rake knapsack:rspec yarn test - bundle exec slim-lint app/views - run: name: Code Climate Test Coverage command: | @@ -171,6 +170,17 @@ jobs: command: | aws s3 sync "s3://login-gov-test-coverage/coverage/$CIRCLE_BUILD_NUM" coverage/ ./cc-test-reporter sum-coverage --output - --parts $CIRCLE_NODE_TOTAL coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage --input - + lints: + working_directory: ~/identity-idp + executor: ruby_browsers + steps: + - checkout + - bundle-yarn-install + - run: + name: Run Lints + command: | + yarn run lint + bundle exec slim-lint app/views build-latest-container: working_directory: ~/identity-idp docker: @@ -271,6 +281,7 @@ workflows: release: jobs: - build + - lints - build-latest-dev-container: requires: - build diff --git a/.codeclimate.yml b/.codeclimate.yml index dfbba505586..c79776263ff 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -56,13 +56,6 @@ plugins: - 'app/forms/password_form.rb' - 'lib/user_flow_exporter.rb' - 'lib/rspec/formatters/user_flow_formatter.rb' - eslint: - enabled: true - channel: eslint-6 - config: - extensions: - - .js - - .jsx fixme: enabled: true exclude_patterns: