fix: make integration services fail fast
This commit is contained in:
parent
e9d3c48aec
commit
5af8335fdd
4 changed files with 108 additions and 45 deletions
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
|
|
@ -7,6 +7,7 @@ on:
|
|||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
@ -50,3 +51,16 @@ jobs:
|
|||
pip install pytest-asyncio
|
||||
cd $cdir
|
||||
pytest tests/integration/*.py -s
|
||||
|
||||
- name: Show integration service logs
|
||||
if: failure()
|
||||
run: |
|
||||
docker ps -a
|
||||
docker logs --tail 200 lnbits_nwcprovider_ext_nostr_test || true
|
||||
docker exec lnbits_nwcprovider_ext_lnbits_test tail -n 200 /tmp/lnbits.log || true
|
||||
|
||||
- name: Stop integration services
|
||||
if: always()
|
||||
run: |
|
||||
docker rm -f lnbits_nwcprovider_ext_lnbits_test lnbits_nwcprovider_ext_nostr_test || true
|
||||
docker network rm lnbits_nwcprovider_ext_test_network || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue