chore: put cache on multi
MODIFY
.circleci/config.yml
.circleci/config.yml
---
version: 2
jobs:
- node-latest-base: &test
+ node-latest-multi: &test
docker:
- image: node:latest
working_directory: ~/cli
- steps: &base_steps
+ steps: &multi_steps
- checkout
- restore_cache: &restore_cache
keys:
@@ -14,7 +14,7 @@ jobs:
- v1-yarn-{{checksum ".circleci/config.yml"}}-master-
- run: .circleci/yarn
- run: .circleci/setup_git
- - run: yarn exec nps test.base
+ - run: yarn exec nps test.multi
- store_test_results: &store_test_results
path: ~/cli/reports
- save_cache:
@@ -23,32 +23,32 @@ jobs:
- ~/cli/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
- node-latest-plugin:
+ node-latest-base:
<<: *test
- steps: &plugin_steps
+ steps: &base_steps
- checkout
- restore_cache: *restore_cache
- run: .circleci/yarn
- run: .circleci/setup_git
- - run: yarn exec nps test.plugin
+ - run: yarn exec nps test.base
- store_test_results: *store_test_results
- node-latest-single:
+ node-latest-plugin:
<<: *test
- steps: &single_steps
+ steps: &plugin_steps
- checkout
- restore_cache: *restore_cache
- run: .circleci/yarn
- run: .circleci/setup_git
- - run: yarn exec nps test.single
+ - run: yarn exec nps test.plugin
- store_test_results: *store_test_results
- node-latest-multi:
+ node-latest-single:
<<: *test
- steps: &multi_steps
+ steps: &single_steps
- checkout
- restore_cache: *restore_cache
- run: .circleci/yarn
- run: .circleci/setup_git
- - run: yarn exec nps test.multi
+ - run: yarn exec nps test.single
- store_test_results: *store_test_results
node-latest-command:
<<: *test

chore: put cache on multi