add github workflow for checking openapi (#1551)
* add github workflow for checking openapi * verbose errors * actual fix? remove env_names from BaseSettings class? * dont kill process in workflow * poetry version 1.5.1 for openapiu
This commit is contained in:
parent
a3aafe4b6f
commit
963fd5de50
5 changed files with 192 additions and 13 deletions
12
Makefile
12
Makefile
|
|
@ -69,6 +69,18 @@ test-migration:
|
|||
migration:
|
||||
poetry run python tools/conv.py
|
||||
|
||||
openapi:
|
||||
LNBITS_BACKEND_WALLET_CLASS="FakeWallet" \
|
||||
FAKE_WALLET_SECRET="ToTheMoon1" \
|
||||
LNBITS_DATA_FOLDER="./tests/data" \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
HOST=0.0.0.0 \
|
||||
PORT=5003 \
|
||||
poetry run lnbits &
|
||||
sleep 7
|
||||
curl -s http://0.0.0.0:5003/openapi.json | poetry run openapi-spec-validator --errors=all -
|
||||
# kill -9 %1
|
||||
|
||||
bak:
|
||||
# LNBITS_DATABASE_URL=postgres://postgres:postgres@0.0.0.0:5432/postgres
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue