You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.2 KiB
56 lines
1.2 KiB
---
|
|
version: 2
|
|
jobs:
|
|
node-latest: &test
|
|
docker:
|
|
- image: node:latest
|
|
working_directory: ~/cli
|
|
steps:
|
|
- checkout
|
|
- restore_cache: &restore_cache
|
|
keys:
|
|
- v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
|
|
- v1-npm-{{checksum ".circleci/config.yml"}}
|
|
- run:
|
|
name: Install dependencies
|
|
command: yarn
|
|
- run: ./bin/run --version
|
|
- run: ./bin/run --help
|
|
- run:
|
|
name: Testing
|
|
command: yarn test
|
|
node-12:
|
|
<<: *test
|
|
docker:
|
|
- image: node:12
|
|
node-10:
|
|
<<: *test
|
|
docker:
|
|
- image: node:10
|
|
cache:
|
|
<<: *test
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Install dependencies
|
|
command: yarn
|
|
- save_cache:
|
|
key: v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
|
|
paths:
|
|
- ~/cli/node_modules
|
|
- /usr/local/share/.cache/yarn
|
|
- /usr/local/share/.config/yarn
|
|
|
|
workflows:
|
|
version: 2
|
|
"nbx":
|
|
jobs:
|
|
- node-latest
|
|
- node-12
|
|
- node-10
|
|
- cache:
|
|
filters:
|
|
tags:
|
|
only: /^v.*/
|
|
branches:
|
|
ignore: /.*/
|