Skip to content

Commit e51c1e4

Browse files
committed
use AMP payments
1 parent 8c7c1da commit e51c1e4

24 files changed

+510
-182
lines changed
Lines changed: 90 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,98 @@
1-
name: Integration Test
2-
on:
1+
name: Integration Tests
2+
on:
33
pull_request:
44
branches:
55
- master
6-
6+
77
jobs:
8-
build:
9-
runs-on: ubuntu-18.04
8+
integration-test:
9+
runs-on: ubuntu-18.04
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
test-name: ['boostPayment', 'botCreation', 'chatPayment', 'cleanup', 'clearAllChats', 'clearAllContacts', 'contacts', 'images', 'latestTest', 'lsats', 'paidMeet', 'paidTribeImages', 'queryRoutes', 'self', 'sphinxPeople', 'streamPayment', 'tribe', 'tribe3Escrow', 'tribe3Messages', 'tribe3Private', 'tribe3Profile', 'tribeEdit', 'tribeImages', 'messageLength', 'transportToken', 'pinnedMsg', 'hmac', 'socketIO', 'tribeMember']
13+
test-name:
14+
[
15+
'boostPayment',
16+
'botCreation',
17+
'chatPayment',
18+
'cleanup',
19+
'clearAllChats',
20+
'clearAllContacts',
21+
'contacts',
22+
'images',
23+
'latestTest',
24+
'lsats',
25+
'paidMeet',
26+
'paidTribeImages',
27+
'queryRoutes',
28+
'self',
29+
'sphinxPeople',
30+
'streamPayment',
31+
'tribe',
32+
'tribe3Escrow',
33+
'tribe3Messages',
34+
'tribe3Private',
35+
'tribe3Profile',
36+
'tribeEdit',
37+
'tribeImages',
38+
'messageLength',
39+
'messageLength',
40+
'messageLength',
41+
'messageLength',
42+
'messageLength',
43+
'messageLength',
44+
'messageLength',
45+
'messageLength',
46+
'messageLength',
47+
'messageLength',
48+
'messageLength',
49+
'messageLength',
50+
'messageLength',
51+
'messageLength',
52+
'messageLength',
53+
'transportToken',
54+
'pinnedMsg',
55+
'hmac',
56+
'socketIO',
57+
'tribeMember',
58+
'ampPayment',
59+
]
1460
steps:
15-
- name: Enable docker.host.internal for Ubuntu
16-
run: |
17-
pwd && sudo bash -c 'echo "172.17.0.1 host.docker.internal" >> /etc/hosts'
18-
- uses: actions/checkout@v2
19-
with:
20-
ref: ${{ github.event.pull_request.head.sha }}
21-
path: relay
22-
- uses: actions/setup-node@v3
23-
with:
24-
node-version: 16
25-
- name: Build Relay
26-
working-directory: ./relay
27-
run: |
28-
npm install && npm run build && docker build -t sphinxlightning/sphinx-relay .
29-
- name: Checkout stack
30-
run: |
31-
git clone https://github.com/stakwork/sphinx-stack.git stack
32-
- name: give permissions
33-
working-directory: ./stack
34-
run: |
35-
chmod 777 ./bitcoind;
36-
chmod 777 -R ./relay;
37-
chmod 777 -R ./lnd;
38-
chmod 777 -R ./proxy;
39-
- name: Turn on Stack
40-
working-directory: ./stack
41-
run: |
42-
GITACTION_ENV=gitactionenv docker-compose -f alts/proxy.yml --project-dir . up -d
43-
- name: Check for NODES.json
44-
working-directory: ./stack
45-
run: |
46-
sleep 240;
47-
docker-compose ps
48-
docker logs meme.sphinx
49-
docker logs dave.sphinx
50-
docker wait stack_relaysetup_1;
51-
- name: copy file
52-
uses: canastro/copy-file-action@master
53-
with:
54-
source: "stack/relay/NODES.json"
55-
target: "relay/src/tests/configs/nodes.json"
56-
- name: Run tests
57-
working-directory: ./relay
58-
run: |
59-
npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m
61+
- name: Enable docker.host.internal for Ubuntu
62+
run: pwd && sudo bash -c 'echo "172.17.0.1 host.docker.internal" >> /etc/hosts'
63+
- uses: actions/checkout@v3
64+
with:
65+
ref: ${{ github.event.pull_request.head.sha }}
66+
path: relay
67+
- uses: actions/setup-node@v3
68+
with:
69+
node-version: 16
70+
- name: Build Relay
71+
working-directory: ./relay
72+
run: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay .
73+
- name: Checkout stack
74+
uses: actions/checkout@v3
75+
with:
76+
repository: antonilol/sphinx-stack
77+
ref: amp
78+
path: stack
79+
- name: Give permissions
80+
working-directory: ./stack
81+
run: chmod 777 -R bitcoind relay lnd proxy
82+
- name: Turn on Stack
83+
working-directory: ./stack
84+
run: GITACTION_ENV=gitactionenv docker-compose -f alts/proxy.yml --project-dir . up -d
85+
- name: Check for NODES.json
86+
working-directory: ./stack
87+
run: |
88+
docker-compose ps
89+
docker logs meme.sphinx
90+
docker logs dave.sphinx
91+
docker logs -f stack_lndsetup_1
92+
docker logs -f stack_relaysetup_1
93+
sleep 1m
94+
- name: Copy nodes.json
95+
run: cp stack/relay/NODES.json relay/src/tests/configs/nodes.json
96+
- name: Run tests
97+
working-directory: ./relay
98+
run: npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,3 @@ creds/*
4040
!creds/.gitkeep
4141
!creds/scheduler_creds
4242
hsm_secret
43-
44-
src/tests/configs/*
45-
src/tests/configs/nodes.json

dist/src/grpc/interfaces.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/grpc/lightning.js

Lines changed: 67 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/grpc/lightning.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/grpc/subscribe.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)