fix integration test run?

This commit is contained in:
Riccardo Balbo 2025-02-22 10:08:23 +00:00
commit 064e34c2ba
2 changed files with 11 additions and 2 deletions

View file

@ -38,7 +38,8 @@ jobs:
- name: Setup integration tests
run: |
bash tests/integration/start.sh &
export HEADLESS=1
bash tests/integration/start.sh
- name: Run integration tests
run: |

View file

@ -49,5 +49,13 @@ docker exec lnbits_nwcprovider_ext_lnbits_test bash -c "curl -sSL https://insta
set +e
docker exec lnbits_nwcprovider_ext_lnbits_test bash -c "export PATH=\"/home/vscode/.local/bin:\$PATH\" && bash /setup.sh /nwcprovider"
docker exec lnbits_nwcprovider_ext_lnbits_test bash -c "ln -s /app/.env \$HOME/lnbits/.env"
docker exec lnbits_nwcprovider_ext_lnbits_test bash -c "export PATH=\"/home/vscode/.local/bin:\$PATH\" && cd \$HOME/lnbits && poetry run lnbits"
ARGS=""
if [ "$HEADLESS" != "" ];
then
ARGS="-d"
fi
docker exec $ARGS lnbits_nwcprovider_ext_lnbits_test bash -c "export PATH=\"/home/vscode/.local/bin:\$PATH\" && cd \$HOME/lnbits && poetry run lnbits"