test: export postgres logs for debugging and use failfast
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
95e97f9b1c
commit
e2a80e9d99
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
2
Makefile
2
Makefile
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue