mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
72 lines
1.9 KiB
YAML
72 lines
1.9 KiB
YAML
version: 2
|
|
workflows:
|
|
version: 2
|
|
workflow:
|
|
jobs:
|
|
- build
|
|
- lint
|
|
- faucet_docker
|
|
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: circleci/node:10
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Version information
|
|
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
|
- restore_cache:
|
|
name: Restore Yarn Package Cache
|
|
keys:
|
|
- yarn-packages-{{ checksum "yarn.lock" }}
|
|
- run:
|
|
name: Install Dependencies
|
|
command: yarn install --frozen-lockfile
|
|
- save_cache:
|
|
name: Save Yarn Package Cache
|
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
paths:
|
|
- ~/.cache/yarn
|
|
- 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:
|
|
name: Restore Yarn Package Cache
|
|
keys:
|
|
- yarn-packages-{{ checksum "yarn.lock" }}
|
|
- run:
|
|
name: Install Dependencies
|
|
command: yarn install --frozen-lockfile
|
|
- save_cache:
|
|
name: Save Yarn Package Cache
|
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
paths:
|
|
- ~/.cache/yarn
|
|
- run:
|
|
command: yarn lint
|
|
faucet_docker:
|
|
docker:
|
|
- image: circleci/node:10
|
|
steps:
|
|
- checkout
|
|
- setup_remote_docker:
|
|
docker_layer_caching: true
|
|
- run:
|
|
name: Build docker image
|
|
command: docker build -t cosmwasm/faucet:manual --file faucet.Dockerfile .
|
|
- run:
|
|
name: Test docker image
|
|
command: |
|
|
docker run --read-only --rm cosmwasm/faucet:manual help
|
|
docker run --read-only --rm cosmwasm/faucet:manual version
|