chore: merge lint and yarn jobs
MODIFY
.circleci/config.yml
.circleci/config.yml
@@ -69,7 +69,7 @@ jobs:
<<: *node_8
steps: *command_steps
- yarn:
+ lint:
<<: *test
steps:
- checkout
@@ -80,6 +80,8 @@ jobs:
- v001
- run: .circleci/greenkeeper
- run: yarn add -D nyc@11 @anycli/nyc-config@0 mocha-junit-reporter@1 @commitlint/cli@6 @commitlint/config-conventional@6
+ - run: yarn exec commitlint -- -x @commitlint/config-conventional --from origin/master
+ - run: yarn exec nps lint
- persist_to_workspace: {root: node_modules, paths: ["*"]}
cache:
@@ -98,40 +100,24 @@ jobs:
- ~/cli/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
-
- lint:
- <<: *test
- docker:
- - image: node:latest
- steps:
- - checkout
- - restore_cache: *restore_cache
- - run: .circleci/greenkeeper
- - run: .circleci/setup_git
- - run: yarn add -D @commitlint/cli@6 @commitlint/config-conventional@6
- - run: yarn exec commitlint -- -x @commitlint/config-conventional --from origin/master
- - run: yarn exec nps lint
- - store_test_results: *store_test_results
-
release:
<<: *test
steps:
- add_ssh_keys
- checkout
- - restore_cache: *restore_cache
+ - run: .circleci/setup_git
- run: .circleci/release
workflows:
version: 2
anycli:
jobs:
- - yarn
- - lint: {requires: [yarn] }
- - node-latest-base: {requires: [yarn] }
- - node-latest-single: {requires: [yarn] }
- - node-latest-plugin: {requires: [yarn] }
- - node-latest-multi: {requires: [yarn] }
- - node-latest-command: {requires: [yarn] }
+ - lint
+ - node-latest-base: {requires: [lint] }
+ - node-latest-single: {requires: [lint] }
+ - node-latest-plugin: {requires: [lint] }
+ - node-latest-multi: {requires: [lint] }
+ - node-latest-command: {requires: [lint] }
- cache:
filters:
branches: {only: master}
@@ -155,15 +141,14 @@ workflows:
only:
- master
jobs:
- - yarn
- - lint: {requires: [yarn] }
- - node-latest-base: {requires: [yarn] }
- - node-latest-single: {requires: [yarn] }
- - node-latest-plugin: {requires: [yarn] }
- - node-latest-multi: {requires: [yarn] }
- - node-latest-command: {requires: [yarn] }
- - node-8-base: {requires: [yarn] }
- - node-8-single: {requires: [yarn] }
- - node-8-plugin: {requires: [yarn] }
- - node-8-multi: {requires: [yarn] }
- - node-8-command: {requires: [yarn] }
+ - lint
+ - node-latest-base: {requires: [lint] }
+ - node-latest-single: {requires: [lint] }
+ - node-latest-plugin: {requires: [lint] }
+ - node-latest-multi: {requires: [lint] }
+ - node-latest-command: {requires: [lint] }
+ - node-8-base: {requires: [lint] }
+ - node-8-single: {requires: [lint] }
+ - node-8-plugin: {requires: [lint] }
+ - node-8-multi: {requires: [lint] }
+ - node-8-command: {requires: [lint] }

chore: merge lint and yarn jobs