Skip to content

Commit

Permalink
chore: add integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Akarshit Wal <[email protected]>
  • Loading branch information
Akarshit committed Sep 20, 2021
1 parent e32ede6 commit adfcf78
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected] run-integration-tests

workflows:
version: 2
build_deploy:
Expand All @@ -57,10 +74,14 @@ workflows:
- lint:
requires:
- build
- test-integration:
requires:
- build
- deploy:
context: reaction-publish-semantic-release
requires:
- lint
- test-integration
filters:
branches:
only: trunk

0 comments on commit adfcf78

Please sign in to comment.