@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
92 lines (83 loc) • 2.02 kB
YAML
## IMPORTANT
# If you change the cache key prefix, also sync the restore_cache fallback to match.
# Keep the static part of the cache key as prefix to enable correct fallbacks.
# See https://circleci.com/docs/2.0/caching/#restoring-cache for how prefixes work in CircleCI.
var_1: &default_docker_image circleci/node:10.12
var_2: &cache_key rxjs-node-10.12-{{ checksum "package-lock.json" }}
# Settings common to each job
var_3:
working_directory: ~/ng
docker:
- image:
var_4:
restore_cache:
keys:
-
# This fallback should be the cache_key without variables.
- rxjs-0.7.0-
var_5:
at: .
version: 2
jobs:
build:
docker:
- image:
steps:
- checkout
-
- run: npm i
- run: npm run build_all
- persist_to_workspace:
root: .
paths:
- ./*
- save_cache:
key:
paths:
- ./node_modules
lint:
<<:
steps:
- attach_workspace:
- run: npm run lint
test:
<<:
steps:
- attach_workspace:
- run: npm test
- run: npm run test:side-effects
dtslint:
<<:
steps:
- attach_workspace:
- run: npm run dtslint
api_guardian:
<<:
steps:
- attach_workspace:
- run: npm run api_guardian
typescript3:
<<:
steps:
- attach_workspace:
- run: npm i --no-save typescript@3.*
- run: npm run build_cjs
workflows:
version: 2
build_and_test:
jobs:
- build
- lint:
requires:
- build
- test:
requires:
- build
- dtslint:
requires:
- build
- typescript3:
requires:
- lint
- test
- dtslint