BlueWallet/.circleci/config.yml

83 lines
1.5 KiB
YAML
Raw Normal View History

version: 2.1
2018-03-18 03:08:48 +00:00
jobs:
lint:
2018-03-18 03:08:48 +00:00
docker:
- image: cimg/node:16.20.2
2018-03-18 03:08:48 +00:00
working_directory: ~/repo
steps:
- checkout
2020-03-16 19:36:09 +00:00
- restore_cache:
key: node_modules-{{ checksum "package-lock.json" }}
- run: test -d node_modules || npm i
2018-03-18 03:08:48 +00:00
2020-03-16 19:36:09 +00:00
- save_cache:
2020-03-16 19:37:45 +00:00
key: node_modules-{{ checksum "package-lock.json" }}
2020-03-16 19:36:09 +00:00
paths:
- node_modules
2018-03-18 03:08:48 +00:00
# run tests!
- run:
command: npm run tslint && npm run lint
unit:
docker:
- image: cimg/node:16.20.2
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.20.2
working_directory: ~/repo
2023-03-04 13:51:11 -04:00
resource_class: large
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