mirror of
https://github.com/stakwork/sphinx-relay.git
synced 2026-08-13 12:33:24 +02:00
tests: retry automated tests (#607)
* test: moved to when starting docker up since that where it usually fails * tests: removed working dir for relay accidentally added that * test: moved the working dir line * test: just using full path instead of working dir * tests: increased timeout
This commit is contained in:
parent
a28789f09f
commit
7067c67069
1 changed files with 12 additions and 13 deletions
25
.github/workflows/integration_test.yml
vendored
25
.github/workflows/integration_test.yml
vendored
|
|
@ -71,18 +71,18 @@ jobs:
|
|||
chmod 777 -R ./relay;
|
||||
chmod 777 -R ./lnd;
|
||||
chmod 777 -R ./proxy;
|
||||
- name: Turn on Stack
|
||||
working-directory: ./stack
|
||||
run: |
|
||||
GITACTION_ENV=gitactionenv docker-compose -f alts/proxy.yml --project-dir . up -d
|
||||
- name: Check for NODES.json
|
||||
working-directory: ./stack
|
||||
run: |
|
||||
sleep 240;
|
||||
docker-compose ps
|
||||
docker logs meme.sphinx
|
||||
docker logs dave.sphinx
|
||||
docker wait stack_relaysetup_1;
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_minutes: 10
|
||||
max_attempts: 3
|
||||
command: |
|
||||
GITACTION_ENV=gitactionenv docker-compose -f ./stack/alts/proxy.yml --project-dir ./stack up -d;
|
||||
sleep 240;
|
||||
docker ps
|
||||
docker logs meme.sphinx
|
||||
docker logs dave.sphinx
|
||||
docker wait stack_relaysetup_1;
|
||||
- name: copy file
|
||||
uses: canastro/copy-file-action@master
|
||||
with:
|
||||
|
|
@ -90,5 +90,4 @@ jobs:
|
|||
target: 'relay/src/tests/configs/nodes.json'
|
||||
- name: Run tests
|
||||
working-directory: ./relay
|
||||
run: |
|
||||
npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m
|
||||
run: npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue