Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,26 @@ 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.0.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: |
sudo apt-get install -y mongodb
mongo --eval "rs.initiate()"
npx --quiet --package @reactioncommerce/ci-scripts@1.12.2 run-integration-tests
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this command runs all integration tests, not just the ones in this plugin


test:
docker:
- image: node:12.14.1
Expand Down Expand Up @@ -75,11 +95,15 @@ workflows:
- test:
requires:
- build
- test-integration:
requires:
- build
- deploy:
context: reaction-publish-semantic-release
requires:
- lint
- test
- test-integration
filters:
branches:
only: trunk