test: export postgres logs for debugging and use failfast

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2024-01-11 14:57:57 +01:00
parent 95e97f9b1c
commit e2a80e9d99
No known key found for this signature in database
3 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@ version: "3.7"
services:
postgresql:
image: docker.io/library/postgres:${PSQL_TAG:-12}
command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]
volumes:
- db-data:/var/lib/postgresql/data
environment:

View File

@ -125,6 +125,9 @@ jobs:
uses: codecov/codecov-action@v3
with:
flags: unit
- if: ${{ always() }}
run: |
docker logs setup-postgresql-1
test-integration:
runs-on: ubuntu-latest
timeout-minutes: 30

View File

@ -51,7 +51,7 @@ test-docker: ## Run all tests in a docker-compose
rm -f .env
test: ## Run the server tests and produce a coverage report (locally)
coverage run manage.py test --keepdb authentik
coverage run manage.py test --keepdb --failfast authentik
coverage html
coverage report