mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
version: 2
|
|
workflows:
|
|
version: 2
|
|
workflow:
|
|
jobs:
|
|
- build
|
|
- lint
|
|
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: circleci/node:10
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Version information
|
|
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
|
- restore_cache:
|
|
keys:
|
|
- node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
|
- node-deps-v1-{{ .Branch }}
|
|
- node-deps-v1
|
|
- run:
|
|
command: yarn install
|
|
- save_cache:
|
|
key: node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
|
paths:
|
|
- ~/project/node_modules
|
|
- run:
|
|
command: yarn build
|
|
- run:
|
|
command: yarn test
|
|
lint:
|
|
docker:
|
|
- image: circleci/node:10
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Version information
|
|
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
|
- restore_cache:
|
|
keys:
|
|
- node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
|
- node-deps-v1-{{ .Branch }}
|
|
- node-deps-v1
|
|
- run:
|
|
command: yarn install
|
|
- save_cache:
|
|
key: node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
|
paths:
|
|
- ~/project/node_modules
|
|
- run:
|
|
command: yarn lint
|