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:
|
services:
|
||||||
postgresql:
|
postgresql:
|
||||||
image: docker.io/library/postgres:${PSQL_TAG:-12}
|
image: docker.io/library/postgres:${PSQL_TAG:-12}
|
||||||
|
command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]
|
||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/postgresql/data
|
- db-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -125,6 +125,9 @@ jobs:
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
flags: unit
|
flags: unit
|
||||||
|
- if: ${{ always() }}
|
||||||
|
run: |
|
||||||
|
docker logs setup-postgresql-1
|
||||||
test-integration:
|
test-integration:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -51,7 +51,7 @@ test-docker: ## Run all tests in a docker-compose
|
||||||
rm -f .env
|
rm -f .env
|
||||||
|
|
||||||
test: ## Run the server tests and produce a coverage report (locally)
|
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 html
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
|
|
Reference in New Issue