-
Notifications
You must be signed in to change notification settings - Fork 133
95 lines (94 loc) · 2.41 KB
/
api.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Guardian CI API Tests
on:
workflow_dispatch:
description: 'Manual run'
push:
branches-ignore:
- 'dependabot/**'
jobs:
buildAndTest:
runs-on: ubuntu-latest
# services:
# hashicorpvault:
# image: vault
# env:
# VAULT_SERVER: "https://0.0.0.0:8200"
# VAULT_DEV_ROOT_TOKEN_ID: "1234"
# ports:
# - 8200/tcp
strategy:
matrix:
node-version: [ 16.x ]
mongodb-version: [ 4.4 ]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Start NatsMQ
uses: onichandame/nats-action@master
with:
port: "4222"
- name: Build
run: |
pushd interfaces
npm install
npm run build
popd
pushd common
npm install
npm run build
popd
pushd notification-service
npm install
npm run build
popd
pushd logger-service
npm install
npm run build
popd
pushd auth-service
npm install
npm run build
popd
pushd guardian-service
npm install
npm run build
popd
pushd policy-service
npm install
npm run build
popd
pushd worker-service
npm install
npm run build
popd
pushd api-gateway
npm install
npm run build
popd
env:
CI: true
- name: Run tests
run: |
pushd api-tests
npm install
npm run test:ci
popd
env:
CI: true
OPERATOR_ID: ${{ secrets.OPERATOR_ID }}
OPERATOR_KEY: ${{ secrets.OPERATOR_KEY }}
IPFS_STORAGE_API_KEY: ${{ secrets.IPFS_STORAGE_API_KEY }}
HASHICORP_HOST: localhost
HASHICORP_PORT: ${{ job.services.hashicorpvault.ports[8200] }}
- name: Publish API Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: test_results/**/*.xml