Skip to content

Commit 7067c67

Browse files
authored
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
1 parent a28789f commit 7067c67

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/integration_test.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,23 @@ jobs:
7171
chmod 777 -R ./relay;
7272
chmod 777 -R ./lnd;
7373
chmod 777 -R ./proxy;
74-
- name: Turn on Stack
75-
working-directory: ./stack
76-
run: |
77-
GITACTION_ENV=gitactionenv docker-compose -f alts/proxy.yml --project-dir . up -d
7874
- name: Check for NODES.json
79-
working-directory: ./stack
80-
run: |
81-
sleep 240;
82-
docker-compose ps
83-
docker logs meme.sphinx
84-
docker logs dave.sphinx
85-
docker wait stack_relaysetup_1;
75+
uses: nick-fields/retry@v2
76+
with:
77+
timeout_minutes: 10
78+
max_attempts: 3
79+
command: |
80+
GITACTION_ENV=gitactionenv docker-compose -f ./stack/alts/proxy.yml --project-dir ./stack up -d;
81+
sleep 240;
82+
docker ps
83+
docker logs meme.sphinx
84+
docker logs dave.sphinx
85+
docker wait stack_relaysetup_1;
8686
- name: copy file
8787
uses: canastro/copy-file-action@master
8888
with:
8989
source: 'stack/relay/NODES.json'
9090
target: 'relay/src/tests/configs/nodes.json'
9191
- name: Run tests
9292
working-directory: ./relay
93-
run: |
94-
npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m
93+
run: npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m

0 commit comments

Comments
 (0)