BlueWallet/.circleci/config.yml

86 lines
1.6 KiB
YAML
Raw Normal View History

version: 2.1
2018-03-18 04:08:48 +01:00
jobs:
lint:
2018-03-18 04:08:48 +01:00
docker:
- image: cimg/node:20.17.0
2018-03-18 04:08:48 +01:00
working_directory: ~/repo
steps:
- checkout
2020-03-16 20:36:09 +01:00
- restore_cache:
2024-08-04 21:41:49 +02:00
key: node_modules-{{ checksum "package-lock.json" }}
2020-03-16 20:36:09 +01:00
2024-08-04 21:41:49 +02:00
- run: test -d node_modules || npm i
2018-03-18 04:08:48 +01:00
2020-03-16 20:36:09 +01:00
- save_cache:
2024-08-04 21:41:49 +02:00
key: node_modules-{{ checksum "package-lock.json" }}
2020-03-16 20:36:09 +01:00
paths:
- node_modules
2018-03-18 04:08:48 +01:00
# run tests!
- run:
2024-08-04 21:41:49 +02:00
command: npm run tslint && npm run lint
unit:
docker:
- image: cimg/node:20.17.0
working_directory: ~/repo
steps:
- checkout
- restore_cache:
2024-08-04 21:41:49 +02:00
key: node_modules-{{ checksum "package-lock.json" }}
2024-08-04 21:41:49 +02:00
- run: test -d node_modules || npm i
- save_cache:
2024-08-04 21:41:49 +02:00
key: node_modules-{{ checksum "package-lock.json" }}
paths:
- node_modules
# run tests!
- run:
2024-08-04 21:41:49 +02:00
command: npm run unit
integration:
docker:
- image: cimg/node:20.17.0
environment:
RETRY: "1"
working_directory: ~/repo
2023-03-04 18:51:11 +01:00
resource_class: large
steps:
- checkout
- restore_cache:
2024-08-04 21:41:49 +02:00
key: node_modules-{{ checksum "package-lock.json" }}
2024-08-04 21:41:49 +02:00
- run: test -d node_modules || npm i
- save_cache:
2024-08-04 21:41:49 +02:00
key: node_modules-{{ checksum "package-lock.json" }}
paths:
- node_modules
# run tests!
- run:
2024-08-04 21:41:49 +02:00
command: npm run jest || npm run jest || npm run jest || npm run jest
# Orchestrate our job run sequence
workflows:
build_and_test:
jobs:
- lint
- unit
- integration