A free open source IT asset/license management system
Upload log as artifact
Marcus Moore30362c924fcc
diff --git a/.github/workflows/tests-mysql.yml b/.github/workflows/tests-mysql.ymlindex 237220b337..bc1c9275bb 100644--- a/.github/workflows/tests-mysql.yml+++ b/.github/workflows/tests-mysql.yml@@ -76,4 +76,16 @@ jobs:DB_DATABASE: snipeitDB_PORT: ${{ job.services.mysql.ports[3306] }}DB_USERNAME: root+ LOG_CHANNEL: single+ LOG_LEVEL: debugrun: php artisan test++ - name: Upload Laravel logs as artifacts+ if: always()+ uses: actions/upload-artifact@v4+ with:+ name: laravel-logs-php-${{ matrix.php-version }}-run-${{ github.run_attempt }}+ path: |+ storage/logs/*.log+ if-no-files-found: ignore+ retention-days: 7diff --git a/.github/workflows/tests-postgres.yml b/.github/workflows/tests-postgres.ymlindex 97379ec2bc..5d7d4d0001 100644--- a/.github/workflows/tests-postgres.yml+++ b/.github/workflows/tests-postgres.yml@@ -75,4 +75,16 @@ jobs:DB_PORT: ${{ job.services.postgresql.ports[5432] }}DB_USERNAME: snipeitDB_PASSWORD: password+ LOG_CHANNEL: single+ LOG_LEVEL: debugrun: php artisan test++ - name: Upload Laravel logs as artifacts+ if: always()+ uses: actions/upload-artifact@v4+ with:+ name: laravel-logs-php-${{ matrix.php-version }}-run-${{ github.run_attempt }}+ path: |+ storage/logs/*.log+ if-no-files-found: ignore+ retention-days: 7diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.ymlindex fdf4ea2ce9..e00e0f7319 100644--- a/.github/workflows/tests-sqlite.yml+++ b/.github/workflows/tests-sqlite.yml@@ -61,4 +61,16 @@ jobs:- name: Execute tests (Unit and Feature tests) via PHPUnitenv:DB_CONNECTION: sqlite+ LOG_CHANNEL: single+ LOG_LEVEL: debugrun: php artisan test++ - name: Upload Laravel logs as artifacts+ if: always()+ uses: actions/upload-artifact@v4+ with:+ name: laravel-logs-php-${{ matrix.php-version }}-run-${{ github.run_attempt }}+ path: |+ storage/logs/*.log+ if-no-files-found: ignore+ retention-days: 7