diff --git a/.circleci/config.yml b/.circleci/config.yml index 426ec79..aa44e99 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -48,6 +48,23 @@ jobs: - run: npm run lint + test-integration: + docker: + - image: circleci/node:14.11.0-stretch + # Integration tests need MongoDB server running and accessible on port 27017 + - image: circleci/mongo:4.2.0 + command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger + ports: + - "27017:27017" + steps: + - checkout + - run: + name: Run Integration Tests + environment: + MONGO_URL: mongodb://localhost:27017/test + MONGO_USE_UNIFIED_TOPOLOGY: false + command: npx --quiet --package @reactioncommerce/ci-scripts@1.12.2 run-integration-tests + test: docker: - image: node:12.14.1 @@ -75,11 +92,15 @@ workflows: - test: requires: - build + - test-integration: + requires: + - build - deploy: context: reaction-publish-semantic-release requires: - lint - test + - test-integration filters: branches: only: trunk