fix integration test run?
This commit is contained in:
parent
24c8ccd7de
commit
064e34c2ba
2 changed files with 11 additions and 2 deletions
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue