This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (60 loc) · 2.05 KB
/
backend-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Continuous Integration Backend
on:
push:
branches: ["master", "develop"]
pull_request:
branches: ["master", "develop"]
defaults:
run:
shell: bash
jobs:
tests:
runs-on: ubuntu-latest
env:
DB_PORT: 5432
DB_USER: root
DB_PASS: mypassword
DB_NAME: area
DB_USER_SCHEMA: user
DB_WORKFLOW_SCHEMA: workflow
DB_CREDENTIAL_SCHEMA: credential
REDIS_PORT: 6379
REDIS_PASS: pass
API_HOST: localhost
USER_API_PORT: 5000
USER_API_SESSION_SECRET: secret
USER_API_SESSION_MAX_AGE: 2160000
USER_API_SESSION_SECURE: false
WORKFLOW_API_PORT: 8000
CREDENTIAL_API_PORT: 8001
GRPC_DOC_PORT: 9000
steps:
- uses: actions/checkout@v2
- name: Build Docker Compose
run: docker compose up -d
- name: Wait for User API
timeout-minutes: 360
run: |
API_PORT=$USER_API_PORT ./backend/util/wait-for-api.sh
- name: Run Postman suite for userAPI
uses: matt-ball/newman-action@master
with:
collection: backend/userAPI/test/postman/User-API-collection.json
environment: backend/userAPI/test/postman/Area-environment.json
- name: Run Postman suite for workflow API gateway
uses: matt-ball/newman-action@master
with:
collection: backend/userAPI/test/postman/Workflow-gateway-collection.json
environment: backend/userAPI/test/postman/Area-environment.json
- name: Run Postman suite for task API gateway
uses: matt-ball/newman-action@master
with:
collection: backend/userAPI/test/postman/Task-gateway-collection.json
environment: backend/userAPI/test/postman/Area-environment.json
- name: Run Postman suite for credential API gateway
uses: matt-ball/newman-action@master
with:
collection: backend/userAPI/test/postman/Credential-gateway-collection.json
environment: backend/userAPI/test/postman/Area-environment.json
- name: Down docker
run: docker compose stop