Skip to content

Commit 637493c

Browse files
committed
postman yaml merged with circleci config
1 parent cd1a340 commit 637493c

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

.circleci/config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,29 @@ jobs:
5959
APPNAME: "resources-api"
6060
steps: *builddeploy_steps
6161

62+
"Run-Newman-Test":
63+
docker:
64+
- image: circleci/node:12
65+
- image: tray/dynamodb-local
66+
command: "-inMemory -port 7777"
67+
- image: elasticsearch:6.8.13
68+
environment:
69+
discovery.type: "single-node"
70+
steps:
71+
- checkout
72+
- setup_remote_docker
73+
- run:
74+
name: 'newman test'
75+
command: |
76+
npm i
77+
cd local
78+
cd ..
79+
npm run create-tables:test
80+
cd mock
81+
(npm run mock-challenge-api&)
82+
(NODE_ENV=test npm start&)
83+
npm run test:newman
84+
6285
workflows:
6386
version: 2
6487
build:
@@ -78,3 +101,14 @@ workflows:
78101
filters:
79102
branches:
80103
only: master
104+
105+
- "Run-Newman-Test":
106+
context : org-global
107+
requires:
108+
- build-dev
109+
- build-prod
110+
filters:
111+
branches:
112+
only:
113+
- automated-postman-testing
114+
- develop

.circleci/postman.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)