-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (53 loc) · 2.23 KB
/
integration.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: Automated Integration Tests
on: [pull_request]
jobs:
postman:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm ci
# - name: Now Dev
# uses: ./.github/actions/nowDev
# with:
# NOW_PROJECT_ID: ${{ secrets.NOW_PROJECT_ID }}
# NOW_ORG_ID: ${{ secrets.NOW_ORG_ID }}
# env:
# NOW_TOKEN: ${{ secrets.NOW_TOKEN }}
# AF_API_KEY: ${{ secrets.AF_API_KEY }}
# AF_COMISSION: 0
# AF_SENDER_NAME: Test
# AF_SENDER_PSEUDOCITY: PARMM211L
# AF_SENDER_IATA_NUMBER: 12345675
# AF_SENDER_AGENCY_ID: id
# AF_SENDER_AGENT_USER_ID: 1234
# AF_PARTICIPANT_ENABLED_SYSTEM_PARTICIPANT_SEQUENCE_NUMBER: 12
# AF_PARTICIPANT_ENABLED_SYSTEM_PARTICIPANT_NAME: MASHERY
# AF_PARTICIPANT_ENABLED_SYSTEM_PARTICIPANT_SYSTEM_ID: MAS
# AF_PARTICIPANT_RECIPENT_AIRLINE_ID: AF
# AF_PARTICIPANT_RECIPENT_NAME: AIRFRANCE
# REDIS_URL: ${{ secrets.REDIS_URL }}
# MONGO_URL: ${{ secrets.MONGO_URL }}
# ELASTIC_URL: ${{ secrets.ELASTIC_SEARCH_URL }}
# EREVMAX_RESERVATION_URL: https://ota-simulator.now.sh/api?ota=getOTAHotelReservation
# EREVMAX_AVAILABILITY_URL: https://ota-simulator.now.sh/api?ota=getOTAHotelAvailability
# INFURA_ENDPOINT: https://ropsten.infura.io/v3
# INFURA_PROJECT_ID: ${{ secrets.INFURA_PROJECT_ID }}
# GLIDER_ORGID: '0x71cd1781a3082f33d2521ac8290c9d4b3b3b116e4e8548a4914b71a1f7201da0'
# GLIDER_ADMIN_KEY: secondkey
# LIF_MIN_DEPOSIT: 0
# SIMARD_URL: https://staging.api.simard.io/api/v1
- name: Deploy PR to Zeit
uses: ./.github/actions/deployNow
with:
NOW_TOKEN: ${{ secrets.NOW_TOKEN }}
NOW_PROJECT_ID: ${{ secrets.NOW_PROJECT_ID }}
NOW_ORG_ID: ${{ secrets.NOW_ORG_ID }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_EXT }}
- name: Run test suite
run: npm run test:newman
- name: Assign to Reviewer
uses: ./.github/actions/assignReviewers
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_EXT }}
PULL_REVIEWERS: mtahon