BlueWallet/.circleci/config.yml
Overtorment 5d4a25840b
TST: jest27, remove jasmine, bump detox, split circleci
Co-authored-by: Ivan Vershigora <ivan.vershigora@gmail.com>
2022-06-03 17:54:05 +01:00

80 lines
1.5 KiB
YAML

version: 2.1
jobs:
lint:
docker:
- image: cimg/node:16.15.0
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: node_modules-{{ checksum "package-lock.json" }}
- run: test -d node_modules || npm i
- save_cache:
key: node_modules-{{ checksum "package-lock.json" }}
paths:
- node_modules
# run tests!
- run:
command: npm run tslint && npm run lint
unit:
docker:
- image: cimg/node:16.15.0
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: node_modules-{{ checksum "package-lock.json" }}
- run: test -d node_modules || npm i
- save_cache:
key: node_modules-{{ checksum "package-lock.json" }}
paths:
- node_modules
# run tests!
- run:
command: npm run unit
integration:
docker:
- image: cimg/node:16.15.0
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: node_modules-{{ checksum "package-lock.json" }}
- run: test -d node_modules || npm i
- save_cache:
key: node_modules-{{ checksum "package-lock.json" }}
paths:
- node_modules
# run tests!
- run:
command: npm run jest || npm run jest || npm run jest
# Orchestrate our job run sequence
workflows:
build_and_test:
jobs:
- lint
- unit
- integration