A free open source IT asset/license management system
Dump logs on test failure
Marcus Moore5c4971612995
diff --git a/.github/workflows/tests-mysql.yml b/.github/workflows/tests-mysql.ymlindex 310414cda6..63fcb8e3e2 100644--- a/.github/workflows/tests-mysql.yml+++ b/.github/workflows/tests-mysql.yml@@ -77,3 +77,7 @@ jobs:DB_PORT: ${{ job.services.mysql.ports[3306] }}DB_USERNAME: rootrun: php artisan test++ - name: Test failure+ if: ${{ failure() }}+ run: docker exec "$PROJECT_NAME-php-fpm" cat storage/logs/laravel.logdiff --git a/.github/workflows/tests-postgres.yml b/.github/workflows/tests-postgres.ymlindex ae48277be3..3cc5244c5e 100644--- a/.github/workflows/tests-postgres.yml+++ b/.github/workflows/tests-postgres.yml@@ -75,3 +75,7 @@ jobs:DB_USERNAME: snipeitDB_PASSWORD: passwordrun: php artisan test++ - name: Test failure+ if: ${{ failure() }}+ run: docker exec "$PROJECT_NAME-php-fpm" cat storage/logs/laravel.logdiff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.ymlindex 8bf0115169..011d19d783 100644--- a/.github/workflows/tests-sqlite.yml+++ b/.github/workflows/tests-sqlite.yml@@ -59,3 +59,7 @@ jobs:env:DB_CONNECTION: sqlite_testingrun: php artisan test++ - name: Test failure+ if: ${{ failure() }}+ run: docker exec "$PROJECT_NAME-php-fpm" cat storage/logs/laravel.log