-
Notifications
You must be signed in to change notification settings - Fork 23
43 lines (38 loc) · 1.11 KB
/
functionalTest.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
# This workflow will do a build of MFOS and run all functional tests.
name: Functional Tests
# run all the functional tests on opening/re-opening/synchronize a PR.
on:
pull_request:
types:
- opened
- reopened
- synchronize
branches: [ main ]
jobs:
functionalTests:
# running on ubuntu latest version
runs-on: ubuntu-latest
strategy:
matrix:
# using node 16.x version
node-version: [16.x]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Use Node.js $${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Run Functional Tests
# going to server and install packages and then go to functional folder
# install the packages and running functional test cases one by one.
run: |
cd server; \
cp src/.mf.config.SAMPLE.json src/.mf.config.json; \
npm install; \
cd ../cli; \
npm install; \
cd ../functional; \
npm install; \
npm run test:healthCheck;
npm run test:openRpcCall;