Files
medusa-store/.circleci/config.yml
T
Sebastian Rindom 695b1fd0a5 feat: dev cli (#203)
* feat: adds dev-cli

* feat: adds dev-cli

* fix: works with org package names

* fix: medusa cli bin

* hotfix(brightpearl): rounding errors + failing customer test (#199)

* fix: verdacio publish

* fix: update yarn lock

* fix(CI): update node

* fix: update yarn lock
2021-03-16 09:51:04 +01:00

53 lines
1.2 KiB
YAML

version: 2.1
orbs:
node: circleci/node@3.0.0
executors:
node:
parameters:
image:
type: string
default: "12.13"
docker:
- image: circleci/node:<< parameters.image >>
aliases:
install_node_modules: &install_node_modules
run:
name: Install node modules
command: yarn --frozen-lockfile
attach_to_bootstrap: &attach_to_bootstrap
attach_workspace:
at: ./
jobs:
bootstrap:
executor: node
steps:
- checkout
- run: ./scripts/assert-changed-files.sh "packages/*|(e2e|integration)-tests/*|.circleci/*|yarn.lock"
- <<: *install_node_modules
- run: yarn bootstrap --concurrency=2
# Persist the workspace again with all packages already built
- persist_to_workspace:
root: ./
paths:
- "*"
unit_test:
executor: node
steps:
- checkout
- run: ./scripts/assert-changed-files.sh "packages"
- <<: *attach_to_bootstrap
- run:
command: node --max-old-space-size=2048 ./node_modules/.bin/jest -w 1
workflows:
test_all:
jobs:
- bootstrap
- unit_test:
requires:
- bootstrap