-
Notifications
You must be signed in to change notification settings - Fork 62
46 lines (34 loc) · 1.11 KB
/
ci.yaml
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
name: Continuous Integration
on: [push, pull_request]
jobs:
Testing_Model_APIs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
- name: Installing node modules
run: npm install
working-directory: ./test
- name: Installing Dredd
run: sudo npm install dredd --global --unsafe-perm=true --allow-root
- name: Set up Python
uses: actions/setup-python@v2
- name: Install pipenv
run: pip install pipenv
- name: Installing python modules
run: pipenv install --system
working-directory: ./test
- name: Build the stack
run: docker-compose up -d
shell: bash
working-directory: ./test
- name: Waiting for OpenSearch domain to be up.
run: sh ./.github/workflows/domain-check.sh
- name: Run script file
run: |
# Disabling TLS certificate verfication as hosted on docker.
export NODE_TLS_REJECT_UNAUTHORIZED=0
python driver-code.py
shell: bash
working-directory: ./test/scripts