forked from hashgraph/guardian
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (60 loc) · 1.43 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
name: Guardian CI API Tests
on: [push]
jobs:
buildAndTest:
runs-on: ubuntu-latest
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/mongodb-github-action@1.7.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Build
run: |
pushd interfaces
npm install
npm run build
popd
pushd vc-modules
npm install
npm run build
popd
pushd frontend
npm install
npm run build
popd
pushd guardian-service
npm install
npm run build
popd
pushd message-broker
npm install
npm run build
popd
pushd ui-service
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
- name: Publish API Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: test_results/**/*.xml