Skip to content

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.yml
index 237220b337..bc1c9275bb 100644
--- a/.github/workflows/tests-mysql.yml
+++ b/.github/workflows/tests-mysql.yml
@@ -76,4 +76,16 @@ jobs:
DB_DATABASE: snipeit
DB_PORT: ${{ job.services.mysql.ports[3306] }}
DB_USERNAME: root
+ LOG_CHANNEL: single
+ LOG_LEVEL: debug
run: 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
diff --git a/.github/workflows/tests-postgres.yml b/.github/workflows/tests-postgres.yml
index 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: snipeit
DB_PASSWORD: password
+ LOG_CHANNEL: single
+ LOG_LEVEL: debug
run: 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
diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.yml
index 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 PHPUnit
env:
DB_CONNECTION: sqlite
+ LOG_CHANNEL: single
+ LOG_LEVEL: debug
run: 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