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:
kevkevin 2023-02-14 15:03:34 -06:00 committed by GitHub
parent a28789f09f
commit 7067c67069
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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