Skip to content

Merge pull request #69 from nwiizo/chapter-9-ja #167

Merge pull request #69 from nwiizo/chapter-9-ja

Merge pull request #69 from nwiizo/chapter-9-ja #167

name: notifications-service-api-conformance-test
on:
push:
pull_request:
jobs:
api-compliance-test:
runs-on: ubuntu-latest
steps:
- name: Check out Git repositor
uses: actions/checkout@v1
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm install
- name: Install portman
run: npm install -g @apideck/portman && portman -l conference-application/notifications-service/kodata/docs/openapi.yaml -o conference-application/notifications-service/api/postman/notifications.postman.json
- name: Build the stack
run: docker-compose -f conference-application/notifications-service/tests/docker-compose.yaml up -d
- name: Install newman
run: npm install -g newman && newman run conference-application/notifications-service/api/postman/notifications.postman.json --env-var "baseUrl=http://localhost:8080"
- name: Shutdown the stack
run: docker-compose -f conference-application/notifications-service/tests/docker-compose.yaml down