show crowdsec logs after the tests (#1439)

This commit is contained in:
mmetc 2022-04-13 15:03:37 +02:00 committed by GitHub
parent 099469c5d2
commit 0190614342
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View file

@ -65,6 +65,11 @@ jobs:
MYSQL_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
MYSQL_USER: root
- name: "Show crowdsec logs"
run:
for file in $(find ./tests/local/var/log -type f); do echo ">>>>> $file"; cat $file; echo; done
if: ${{ always() }}
- name: "Show database logs"
run: docker logs "${{ job.services.database.id }}"
if: ${{ always() }}

View file

@ -84,6 +84,11 @@ jobs:
PGPASSWORD: ${{ secrets.DATABASE_PASSWORD }}
PGUSER: postgres
- name: "Show crowdsec logs"
run:
for file in $(find ./tests/local/var/log -type f); do echo ">>>>> $file"; cat $file; echo; done
if: ${{ always() }}
- name: "Show database logs"
run: docker logs "${{ job.services.database.id }}"
if: ${{ always() }}

View file

@ -45,3 +45,9 @@ jobs:
with:
name: coverage-bats.out
path: ./tests/local/var/lib/coverage/coverage-bats.out
- name: "Show crowdsec logs"
run:
for file in $(find ./tests/local/var/log -type f); do echo ">>>>> $file"; cat $file; echo; done
if: ${{ always() }}